/* Options: Date: 2024-12-22 21:06:00 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: QueryAlbums.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Albums implements IConvertible { int? albumId; // @required() String? title; int? artistId; Albums({this.albumId,this.title,this.artistId}); Albums.fromJson(Map json) { fromMap(json); } fromMap(Map json) { albumId = json['albumId']; title = json['title']; artistId = json['artistId']; return this; } Map toJson() => { 'albumId': albumId, 'title': title, 'artistId': artistId }; getTypeName() => "Albums"; TypeContext? context = _ctx; } // @Route("/albums", "GET") // @Route("/albums/{AlbumId}", "GET") class QueryAlbums extends QueryDb implements IReturn>, IGet, IConvertible { int? albumId; QueryAlbums({this.albumId}); QueryAlbums.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); albumId = json['albumId']; return this; } Map toJson() => super.toJson()..addAll({ 'albumId': albumId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryAlbums"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Albums': TypeInfo(TypeOf.Class, create:() => Albums()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryAlbums': TypeInfo(TypeOf.Class, create:() => QueryAlbums()), 'List': TypeInfo(TypeOf.Class, create:() => []), });