/* Options: Date: 2026-09-01 21:51:33 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: QueryTracks.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Tracks implements IConvertible { int trackId = 0; // @required() String name = ""; int? albumId; int mediaTypeId = 0; int? genreId; String composer = ""; int milliseconds = 0; int? bytes; double unitPrice = 0; Tracks({this.trackId=0,this.name="",this.albumId,this.mediaTypeId=0,this.genreId,this.composer="",this.milliseconds=0,this.bytes,this.unitPrice=0}); Tracks.fromJson(Map json) { fromMap(json); } fromMap(Map json) { trackId = json['trackId'] ?? 0; name = json['name'] ?? ""; albumId = json['albumId']; mediaTypeId = json['mediaTypeId'] ?? 0; genreId = json['genreId']; composer = json['composer'] ?? ""; milliseconds = json['milliseconds'] ?? 0; bytes = json['bytes']; unitPrice = JsonConverters.toDouble(json['unitPrice']) ?? 0; return this; } Map toJson() => { 'trackId': trackId, 'name': name, 'albumId': albumId, 'mediaTypeId': mediaTypeId, 'genreId': genreId, 'composer': composer, 'milliseconds': milliseconds, 'bytes': bytes, 'unitPrice': unitPrice }; getTypeName() => "Tracks"; TypeContext? context = _ctx; } // @Route("/tracks", "GET") // @Route("/tracks/{TrackId}", "GET") class QueryTracks extends QueryDb implements IReturn>, IGet, IConvertible { int? trackId; String nameContains = ""; QueryTracks({this.trackId,this.nameContains=""}); QueryTracks.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); trackId = json['trackId']; nameContains = json['nameContains'] ?? ""; return this; } Map toJson() => super.toJson()..addAll({ 'trackId': trackId, 'nameContains': nameContains }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryTracks"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Tracks': TypeInfo(TypeOf.Class, create:() => Tracks()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryTracks': TypeInfo(TypeOf.Class, create:() => QueryTracks()), 'List': TypeInfo(TypeOf.Class, create:() => []), });