/* Options: Date: 2025-01-08 03:21:58 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: DeleteAlbum.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Album extends AuditBase implements IConvertible { int? id; String? name; String? description; String? slug; List? tags = []; String? refId; int? ownerId; String? ownerRef; int? primaryArtifactId; bool? private; int? rating; int? likesCount; int? downloadsCount; int? searchCount; int? score; int? rank; int? prefColumns; List? artifacts = []; Album({this.id,this.name,this.description,this.slug,this.tags,this.refId,this.ownerId,this.ownerRef,this.primaryArtifactId,this.private,this.rating,this.likesCount,this.downloadsCount,this.searchCount,this.score,this.rank,this.prefColumns,this.artifacts}); Album.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; name = json['name']; description = json['description']; slug = json['slug']; tags = JsonConverters.fromJson(json['tags'],'List',context!); refId = json['refId']; ownerId = json['ownerId']; ownerRef = json['ownerRef']; primaryArtifactId = json['primaryArtifactId']; private = json['private']; rating = json['rating']; likesCount = json['likesCount']; downloadsCount = json['downloadsCount']; searchCount = json['searchCount']; score = json['score']; rank = json['rank']; prefColumns = json['prefColumns']; artifacts = JsonConverters.fromJson(json['artifacts'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'name': name, 'description': description, 'slug': slug, 'tags': JsonConverters.toJson(tags,'List',context!), 'refId': refId, 'ownerId': ownerId, 'ownerRef': ownerRef, 'primaryArtifactId': primaryArtifactId, 'private': private, 'rating': rating, 'likesCount': likesCount, 'downloadsCount': downloadsCount, 'searchCount': searchCount, 'score': score, 'rank': rank, 'prefColumns': prefColumns, 'artifacts': JsonConverters.toJson(artifacts,'List',context!) }); getTypeName() => "Album"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class DeleteAlbum implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteAlbum({this.id}); DeleteAlbum.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteAlbum"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'Album': TypeInfo(TypeOf.Class, create:() => Album()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AlbumArtifact': TypeInfo(TypeOf.Class, create:() => AlbumArtifact()), 'DeleteAlbum': TypeInfo(TypeOf.Class, create:() => DeleteAlbum()), });