/* Options: Date: 2024-12-22 21:49:22 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: DeleteGenres.* //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/{GenreId}", "DELETE") class DeleteGenres implements IReturn, IDelete, IDeleteDb, IConvertible { int? genreId; DeleteGenres({this.genreId}); DeleteGenres.fromJson(Map json) { fromMap(json); } fromMap(Map json) { genreId = json['genreId']; return this; } Map toJson() => { 'genreId': genreId }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "DeleteGenres"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Genres': TypeInfo(TypeOf.Class, create:() => Genres()), 'DeleteGenres': TypeInfo(TypeOf.Class, create:() => DeleteGenres()), });