/* Options: Date: 2024-12-22 21:23:11 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: UpdateAlbums.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Albums implements IConvertible { int? albumId; // @required() String? title; int? artistId; Albums({this.albumId,this.title,this.artistId}); Albums.fromJson(Map json) { fromMap(json); } fromMap(Map json) { albumId = json['albumId']; title = json['title']; artistId = json['artistId']; return this; } Map toJson() => { 'albumId': albumId, 'title': title, 'artistId': artistId }; getTypeName() => "Albums"; TypeContext? context = _ctx; } // @Route("/albums/{AlbumId}", "PUT") class UpdateAlbums implements IReturn, IPut, IUpdateDb, IConvertible { int? albumId; String? title; int? artistId; UpdateAlbums({this.albumId,this.title,this.artistId}); UpdateAlbums.fromJson(Map json) { fromMap(json); } fromMap(Map json) { albumId = json['albumId']; title = json['title']; artistId = json['artistId']; return this; } Map toJson() => { 'albumId': albumId, 'title': title, 'artistId': artistId }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "UpdateAlbums"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Albums': TypeInfo(TypeOf.Class, create:() => Albums()), 'UpdateAlbums': TypeInfo(TypeOf.Class, create:() => UpdateAlbums()), });