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