/* Options: Date: 2026-09-01 21:52:59 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryArtists.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Artists implements IConvertible { int artistId = 0; String name = ""; Artists({this.artistId=0,this.name=""}); Artists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artistId = json['artistId'] ?? 0; name = json['name'] ?? ""; return this; } Map toJson() => { 'artistId': artistId, 'name': name }; getTypeName() => "Artists"; TypeContext? context = _ctx; } // @Route("/artists", "GET") // @Route("/artists/{ArtistId}", "GET") class QueryArtists extends QueryDb implements IReturn>, IGet, IConvertible { int? artistId; List? artistIdBetween; String nameStartsWith = ""; QueryArtists({this.artistId,this.artistIdBetween,this.nameStartsWith=""}); QueryArtists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); artistId = json['artistId']; artistIdBetween = JsonConverters.fromJson(json['artistIdBetween'],'List',context!) ?? []; nameStartsWith = json['nameStartsWith'] ?? ""; return this; } Map toJson() => super.toJson()..addAll({ 'artistId': artistId, 'artistIdBetween': JsonConverters.toJson(artistIdBetween,'List',context!), 'nameStartsWith': nameStartsWith }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryArtists"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Artists': TypeInfo(TypeOf.Class, create:() => Artists()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryArtists': TypeInfo(TypeOf.Class, create:() => QueryArtists()), 'List': TypeInfo(TypeOf.Class, create:() => []), });