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