/* Options: Date: 2025-09-07 09:39:40 Version: 8.81 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://account.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateIndividualLicense.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum LicenseType { Free, FreeIndividual, FreeOpenSource, Indie, Business, Enterprise, TextIndie, TextBusiness, OrmLiteIndie, OrmLiteBusiness, RedisIndie, RedisBusiness, AwsIndie, AwsBusiness, Trial, Site, TextSite, RedisSite, OrmLiteSite, } class FreeLicenseResponse implements IConvertible { String? licenseName; String? licenseRef; String? licenseKey; LicenseType? licenseType; DateTime? createdDate; DateTime? expiryDate; String? externalRef; ResponseStatus? responseStatus; FreeLicenseResponse({this.licenseName,this.licenseRef,this.licenseKey,this.licenseType,this.createdDate,this.expiryDate,this.externalRef,this.responseStatus}); FreeLicenseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { licenseName = json['licenseName']; licenseRef = json['licenseRef']; licenseKey = json['licenseKey']; licenseType = JsonConverters.fromJson(json['licenseType'],'LicenseType',context!); createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); expiryDate = JsonConverters.fromJson(json['expiryDate'],'DateTime',context!); externalRef = json['externalRef']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'licenseName': licenseName, 'licenseRef': licenseRef, 'licenseKey': licenseKey, 'licenseType': JsonConverters.toJson(licenseType,'LicenseType',context!), 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!), 'expiryDate': JsonConverters.toJson(expiryDate,'DateTime',context!), 'externalRef': externalRef, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "FreeLicenseResponse"; TypeContext? context = _ctx; } // @Route("/freelicense/individual", "POST") // @Route("/CreateIndividualLicense", "POST") class CreateIndividualLicense implements IReturn, IPost, IConvertible { String? licenseName; bool? agreeTerms; CreateIndividualLicense({this.licenseName,this.agreeTerms}); CreateIndividualLicense.fromJson(Map json) { fromMap(json); } fromMap(Map json) { licenseName = json['licenseName']; agreeTerms = json['agreeTerms']; return this; } Map toJson() => { 'licenseName': licenseName, 'agreeTerms': agreeTerms }; createResponse() => FreeLicenseResponse(); getResponseTypeName() => "FreeLicenseResponse"; getTypeName() => "CreateIndividualLicense"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'account.servicestack.net', types: { 'LicenseType': TypeInfo(TypeOf.Enum, enumValues:LicenseType.values), 'FreeLicenseResponse': TypeInfo(TypeOf.Class, create:() => FreeLicenseResponse()), 'CreateIndividualLicense': TypeInfo(TypeOf.Class, create:() => CreateIndividualLicense()), });