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