/* Options: Date: 2025-01-08 03:15:13 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateArtist.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Artist extends AuditBase implements IConvertible { int? id; String? firstName; String? lastName; int? yearDied; List? type; int? score; int? rank; Artist({this.id,this.firstName,this.lastName,this.yearDied,this.type,this.score,this.rank}); Artist.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; firstName = json['firstName']; lastName = json['lastName']; yearDied = json['yearDied']; type = JsonConverters.fromJson(json['type'],'List',context!); score = json['score']; rank = json['rank']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'firstName': firstName, 'lastName': lastName, 'yearDied': yearDied, 'type': JsonConverters.toJson(type,'List',context!), 'score': score, 'rank': rank }); getTypeName() => "Artist"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="HasRole(`Moderator`)") class UpdateArtist implements IReturn, IPatchDb, IConvertible, IPatch { int? id; String? firstName; String? lastName; int? yearDied; List? type; UpdateArtist({this.id,this.firstName,this.lastName,this.yearDied,this.type}); UpdateArtist.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; firstName = json['firstName']; lastName = json['lastName']; yearDied = json['yearDied']; type = JsonConverters.fromJson(json['type'],'List',context!); return this; } Map toJson() => { 'id': id, 'firstName': firstName, 'lastName': lastName, 'yearDied': yearDied, 'type': JsonConverters.toJson(type,'List',context!) }; createResponse() => Artist(); getResponseTypeName() => "Artist"; getTypeName() => "UpdateArtist"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Artist': TypeInfo(TypeOf.Class, create:() => Artist()), 'UpdateArtist': TypeInfo(TypeOf.Class, create:() => UpdateArtist()), });