/* Options: Date: 2025-01-08 03:13:05 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: GetArtifactUserData.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetArtifactUserDataResponse implements IConvertible { int? artifactId; bool? liked; List? upVoted = []; List? downVoted = []; GetArtifactUserDataResponse({this.artifactId,this.liked,this.upVoted,this.downVoted}); GetArtifactUserDataResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artifactId = json['artifactId']; liked = json['liked']; upVoted = JsonConverters.fromJson(json['upVoted'],'List',context!); downVoted = JsonConverters.fromJson(json['downVoted'],'List',context!); return this; } Map toJson() => { 'artifactId': artifactId, 'liked': liked, 'upVoted': JsonConverters.toJson(upVoted,'List',context!), 'downVoted': JsonConverters.toJson(downVoted,'List',context!) }; getTypeName() => "GetArtifactUserDataResponse"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class GetArtifactUserData implements IReturn, IGet, IConvertible { int? artifactId; GetArtifactUserData({this.artifactId}); GetArtifactUserData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artifactId = json['artifactId']; return this; } Map toJson() => { 'artifactId': artifactId }; createResponse() => GetArtifactUserDataResponse(); getResponseTypeName() => "GetArtifactUserDataResponse"; getTypeName() => "GetArtifactUserData"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'GetArtifactUserDataResponse': TypeInfo(TypeOf.Class, create:() => GetArtifactUserDataResponse()), 'GetArtifactUserData': TypeInfo(TypeOf.Class, create:() => GetArtifactUserData()), });