/* Options: Date: 2024-12-22 21:11:54 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: CreateArtists.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Artists implements IConvertible { int? artistId; String? name; Artists({this.artistId,this.name}); Artists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artistId = json['artistId']; name = json['name']; return this; } Map toJson() => { 'artistId': artistId, 'name': name }; getTypeName() => "Artists"; TypeContext? context = _ctx; } // @Route("/artists", "POST") class CreateArtists implements IReturn, IPost, ICreateDb, IConvertible { String? name; CreateArtists({this.name}); CreateArtists.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "CreateArtists"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Artists': TypeInfo(TypeOf.Class, create:() => Artists()), 'CreateArtists': TypeInfo(TypeOf.Class, create:() => CreateArtists()), });