/* Options: Date: 2025-01-08 03:06:23 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: GetAlbumResults.* //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 GetAlbumResultsResponse implements IConvertible { List? results = []; GetAlbumResultsResponse({this.results}); GetAlbumResultsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'List',context!); return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'List',context!) }; getTypeName() => "GetAlbumResultsResponse"; TypeContext? context = _ctx; } class GetAlbumResults implements IReturn, IConvertible, IPost { List? ids; List? refIds; GetAlbumResults({this.ids,this.refIds}); GetAlbumResults.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ids = JsonConverters.fromJson(json['ids'],'List',context!); refIds = JsonConverters.fromJson(json['refIds'],'List',context!); return this; } Map toJson() => { 'ids': JsonConverters.toJson(ids,'List',context!), 'refIds': JsonConverters.toJson(refIds,'List',context!) }; createResponse() => GetAlbumResultsResponse(); getResponseTypeName() => "GetAlbumResultsResponse"; getTypeName() => "GetAlbumResults"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'AlbumResult': TypeInfo(TypeOf.Class, create:() => AlbumResult()), 'GetAlbumResultsResponse': TypeInfo(TypeOf.Class, create:() => GetAlbumResultsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAlbumResults': TypeInfo(TypeOf.Class, create:() => GetAlbumResults()), });