/* Options: Date: 2025-01-08 03:13:47 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: UserData.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum SignupType { Updates, Beta, } class AlbumResult implements IConvertible { int? id; String? name; String? slug; String? albumRef; String? ownerRef; int? primaryArtifactId; int? score; List? artifactIds = []; AlbumResult({this.id,this.name,this.slug,this.albumRef,this.ownerRef,this.primaryArtifactId,this.score,this.artifactIds}); AlbumResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; slug = json['slug']; albumRef = json['albumRef']; ownerRef = json['ownerRef']; primaryArtifactId = json['primaryArtifactId']; score = json['score']; artifactIds = JsonConverters.fromJson(json['artifactIds'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'slug': slug, 'albumRef': albumRef, 'ownerRef': ownerRef, 'primaryArtifactId': primaryArtifactId, 'score': score, 'artifactIds': JsonConverters.toJson(artifactIds,'List',context!) }; getTypeName() => "AlbumResult"; TypeContext? context = _ctx; } class Likes implements IConvertible { List? artifactIds = []; List? albumIds = []; Likes({this.artifactIds,this.albumIds}); Likes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artifactIds = JsonConverters.fromJson(json['artifactIds'],'List',context!); albumIds = JsonConverters.fromJson(json['albumIds'],'List',context!); return this; } Map toJson() => { 'artifactIds': JsonConverters.toJson(artifactIds,'List',context!), 'albumIds': JsonConverters.toJson(albumIds,'List',context!) }; getTypeName() => "Likes"; TypeContext? context = _ctx; } class UserResult implements IConvertible { String? refId; String? handle; String? avatar; String? profileUrl; Likes? likes; List? albums = []; UserResult({this.refId,this.handle,this.avatar,this.profileUrl,this.likes,this.albums}); UserResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { refId = json['refId']; handle = json['handle']; avatar = json['avatar']; profileUrl = json['profileUrl']; likes = JsonConverters.fromJson(json['likes'],'Likes',context!); albums = JsonConverters.fromJson(json['albums'],'List',context!); return this; } Map toJson() => { 'refId': refId, 'handle': handle, 'avatar': avatar, 'profileUrl': profileUrl, 'likes': JsonConverters.toJson(likes,'Likes',context!), 'albums': JsonConverters.toJson(albums,'List',context!) }; getTypeName() => "UserResult"; TypeContext? context = _ctx; } 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 UserDataResponse implements IConvertible { UserResult? user; UserProfile? profile; List? signups = []; List? roles = []; ResponseStatus? responseStatus; UserDataResponse({this.user,this.profile,this.signups,this.roles,this.responseStatus}); UserDataResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { user = JsonConverters.fromJson(json['user'],'UserResult',context!); profile = JsonConverters.fromJson(json['profile'],'UserProfile',context!); signups = JsonConverters.fromJson(json['signups'],'List',context!); roles = JsonConverters.fromJson(json['roles'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'user': JsonConverters.toJson(user,'UserResult',context!), 'profile': JsonConverters.toJson(profile,'UserProfile',context!), 'signups': JsonConverters.toJson(signups,'List',context!), 'roles': JsonConverters.toJson(roles,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "UserDataResponse"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class UserData implements IReturn, IPost, IConvertible { UserData(); UserData.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => UserDataResponse(); getResponseTypeName() => "UserDataResponse"; getTypeName() => "UserData"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'SignupType': TypeInfo(TypeOf.Enum, enumValues:SignupType.values), 'AlbumResult': TypeInfo(TypeOf.Class, create:() => AlbumResult()), 'Likes': TypeInfo(TypeOf.Class, create:() => Likes()), 'UserResult': TypeInfo(TypeOf.Class, create:() => UserResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserProfile': TypeInfo(TypeOf.Class, create:() => UserProfile()), 'UserDataResponse': TypeInfo(TypeOf.Class, create:() => UserDataResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserData': TypeInfo(TypeOf.Class, create:() => UserData()), });