/* Options: Date: 2025-05-13 20:04:53 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://chinook.netcore.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryPlaylists.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Playlists implements IConvertible { int? playlistId; String? name; Playlists({this.playlistId,this.name}); Playlists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { playlistId = json['playlistId']; name = json['name']; return this; } Map toJson() => { 'playlistId': playlistId, 'name': name }; getTypeName() => "Playlists"; TypeContext? context = _ctx; } // @Route("/playlists", "GET") // @Route("/playlists/{PlaylistId}", "GET") class QueryPlaylists extends QueryDb implements IReturn>, IGet, IConvertible { int? playlistId; QueryPlaylists({this.playlistId}); QueryPlaylists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); playlistId = json['playlistId']; return this; } Map toJson() => super.toJson()..addAll({ 'playlistId': playlistId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryPlaylists"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chinook.netcore.io', types: { 'Playlists': TypeInfo(TypeOf.Class, create:() => Playlists()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryPlaylists': TypeInfo(TypeOf.Class, create:() => QueryPlaylists()), 'List': TypeInfo(TypeOf.Class, create:() => []), });