/* Options: Date: 2025-01-08 03:03:10 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUserProfile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UserProfile implements IConvertible { String? displayName; String? avatar; String? handle; UserProfile({this.displayName,this.avatar,this.handle}); UserProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { displayName = json['displayName']; avatar = json['avatar']; handle = json['handle']; return this; } Map toJson() => { 'displayName': displayName, 'avatar': avatar, 'handle': handle }; getTypeName() => "UserProfile"; TypeContext? context = _ctx; } class GetUserProfileResponse implements IConvertible { UserProfile? result; ResponseStatus? responseStatus; GetUserProfileResponse({this.result,this.responseStatus}); GetUserProfileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = JsonConverters.fromJson(json['result'],'UserProfile',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'result': JsonConverters.toJson(result,'UserProfile',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetUserProfileResponse"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class GetUserProfile implements IReturn, IConvertible, IPost { GetUserProfile(); GetUserProfile.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetUserProfileResponse(); getResponseTypeName() => "GetUserProfileResponse"; getTypeName() => "GetUserProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'UserProfile': TypeInfo(TypeOf.Class, create:() => UserProfile()), 'GetUserProfileResponse': TypeInfo(TypeOf.Class, create:() => GetUserProfileResponse()), 'GetUserProfile': TypeInfo(TypeOf.Class, create:() => GetUserProfile()), });