/* Options: Date: 2025-01-08 03:09:45 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: QueryArtists.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Artist extends AuditBase implements IConvertible { int? id; String? firstName; String? lastName; int? yearDied; List? type; int? score; int? rank; Artist({this.id,this.firstName,this.lastName,this.yearDied,this.type,this.score,this.rank}); Artist.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; firstName = json['firstName']; lastName = json['lastName']; yearDied = json['yearDied']; type = JsonConverters.fromJson(json['type'],'List',context!); score = json['score']; rank = json['rank']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'firstName': firstName, 'lastName': lastName, 'yearDied': yearDied, 'type': JsonConverters.toJson(type,'List',context!), 'score': score, 'rank': rank }); getTypeName() => "Artist"; TypeContext? context = _ctx; } class QueryArtists extends QueryDb implements IReturn>, IConvertible, IGet { QueryArtists(); QueryArtists.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryArtists"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Artist': TypeInfo(TypeOf.Class, create:() => Artist()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryArtists': TypeInfo(TypeOf.Class, create:() => QueryArtists()), 'List': TypeInfo(TypeOf.Class, create:() => []), });