/* Options: Date: 2025-01-08 03:11:31 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: GetUserInfo.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 GetUserInfoResponse implements IConvertible { UserResult? result; ResponseStatus? responseStatus; GetUserInfoResponse({this.result,this.responseStatus}); GetUserInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = JsonConverters.fromJson(json['result'],'UserResult',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'result': JsonConverters.toJson(result,'UserResult',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetUserInfoResponse"; TypeContext? context = _ctx; } class GetUserInfo implements IReturn, IGet, IConvertible { String? refId; GetUserInfo({this.refId}); GetUserInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { refId = json['refId']; return this; } Map toJson() => { 'refId': refId }; createResponse() => GetUserInfoResponse(); getResponseTypeName() => "GetUserInfoResponse"; getTypeName() => "GetUserInfo"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'AlbumResult': TypeInfo(TypeOf.Class, create:() => AlbumResult()), 'Likes': TypeInfo(TypeOf.Class, create:() => Likes()), 'UserResult': TypeInfo(TypeOf.Class, create:() => UserResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetUserInfoResponse': TypeInfo(TypeOf.Class, create:() => GetUserInfoResponse()), 'GetUserInfo': TypeInfo(TypeOf.Class, create:() => GetUserInfo()), });