/* Options: Date: 2025-01-08 03:40:22 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: CheckQuota.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CheckQuotaResponse implements IConvertible { Duration? timeRemaining; int? creditsUsed; int? creditsRequested; int? creditsRemaining; int? dailyQuota; String? requestedDetails; CheckQuotaResponse({this.timeRemaining,this.creditsUsed,this.creditsRequested,this.creditsRemaining,this.dailyQuota,this.requestedDetails}); CheckQuotaResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { timeRemaining = JsonConverters.fromJson(json['timeRemaining'],'Duration',context!); creditsUsed = json['creditsUsed']; creditsRequested = json['creditsRequested']; creditsRemaining = json['creditsRemaining']; dailyQuota = json['dailyQuota']; requestedDetails = json['requestedDetails']; return this; } Map toJson() => { 'timeRemaining': JsonConverters.toJson(timeRemaining,'Duration',context!), 'creditsUsed': creditsUsed, 'creditsRequested': creditsRequested, 'creditsRemaining': creditsRemaining, 'dailyQuota': dailyQuota, 'requestedDetails': requestedDetails }; getTypeName() => "CheckQuotaResponse"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class CheckQuota implements IReturn, IConvertible, IPost { int? images; int? width; int? height; CheckQuota({this.images,this.width,this.height}); CheckQuota.fromJson(Map json) { fromMap(json); } fromMap(Map json) { images = json['images']; width = json['width']; height = json['height']; return this; } Map toJson() => { 'images': images, 'width': width, 'height': height }; createResponse() => CheckQuotaResponse(); getResponseTypeName() => "CheckQuotaResponse"; getTypeName() => "CheckQuota"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'CheckQuotaResponse': TypeInfo(TypeOf.Class, create:() => CheckQuotaResponse()), 'CheckQuota': TypeInfo(TypeOf.Class, create:() => CheckQuota()), });