/* Options: Date: 2025-01-08 03:15:03 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: GetCreativesInAlbums.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AlbumResult implements IConvertible { int? id; String? name; String? slug; String? albumRef; String? ownerRef; int? primaryArtifactId; int? score; List? artifactIds = []; AlbumResult({this.id,this.name,this.slug,this.albumRef,this.ownerRef,this.primaryArtifactId,this.score,this.artifactIds}); AlbumResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; slug = json['slug']; albumRef = json['albumRef']; ownerRef = json['ownerRef']; primaryArtifactId = json['primaryArtifactId']; score = json['score']; artifactIds = JsonConverters.fromJson(json['artifactIds'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'slug': slug, 'albumRef': albumRef, 'ownerRef': ownerRef, 'primaryArtifactId': primaryArtifactId, 'score': score, 'artifactIds': JsonConverters.toJson(artifactIds,'List',context!) }; getTypeName() => "AlbumResult"; TypeContext? context = _ctx; } class GetCreativesInAlbumsResponse implements IConvertible { List? results = []; GetCreativesInAlbumsResponse({this.results}); GetCreativesInAlbumsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'List',context!); return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'List',context!) }; getTypeName() => "GetCreativesInAlbumsResponse"; TypeContext? context = _ctx; } /** * Retrieve Albums containing at least one of creative Artifacts */ class GetCreativesInAlbums implements IReturn, IGet, IConvertible { int? creativeId; GetCreativesInAlbums({this.creativeId}); GetCreativesInAlbums.fromJson(Map json) { fromMap(json); } fromMap(Map json) { creativeId = json['creativeId']; return this; } Map toJson() => { 'creativeId': creativeId }; createResponse() => GetCreativesInAlbumsResponse(); getResponseTypeName() => "GetCreativesInAlbumsResponse"; getTypeName() => "GetCreativesInAlbums"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'AlbumResult': TypeInfo(TypeOf.Class, create:() => AlbumResult()), 'GetCreativesInAlbumsResponse': TypeInfo(TypeOf.Class, create:() => GetCreativesInAlbumsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCreativesInAlbums': TypeInfo(TypeOf.Class, create:() => GetCreativesInAlbums()), });