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