/* Options: Date: 2025-09-07 08:21:42 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: CreateOpenSourceLicense.* //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/opensource", "POST") // @Route("/CreateOpenSourceLicense", "POST") class CreateOpenSourceLicense implements IReturn, IPost, IConvertible { String? licenseName; String? projectUrl; String? licenseSpdx; bool? agreeTerms; CreateOpenSourceLicense({this.licenseName,this.projectUrl,this.licenseSpdx,this.agreeTerms}); CreateOpenSourceLicense.fromJson(Map json) { fromMap(json); } fromMap(Map json) { licenseName = json['licenseName']; projectUrl = json['projectUrl']; licenseSpdx = json['licenseSpdx']; agreeTerms = json['agreeTerms']; return this; } Map toJson() => { 'licenseName': licenseName, 'projectUrl': projectUrl, 'licenseSpdx': licenseSpdx, 'agreeTerms': agreeTerms }; createResponse() => FreeLicenseResponse(); getResponseTypeName() => "FreeLicenseResponse"; getTypeName() => "CreateOpenSourceLicense"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'account.servicestack.net', types: { 'LicenseType': TypeInfo(TypeOf.Enum, enumValues:LicenseType.values), 'FreeLicenseResponse': TypeInfo(TypeOf.Class, create:() => FreeLicenseResponse()), 'CreateOpenSourceLicense': TypeInfo(TypeOf.Class, create:() => CreateOpenSourceLicense()), });