/* Options: Date: 2024-12-22 21:20:51 Version: 8.51 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,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Artists implements IConvertible { int? artistId; String? name; Artists({this.artistId,this.name}); Artists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artistId = json['artistId']; 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:() => []), });