/* Options: Date: 2024-12-22 13:00:54 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SubscribeToOrganization.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum Frequency { Daily, Weekly, Monthly, Quarterly, } // @Route("/orgs/{OrganizationId}/subscribe", "PUT") class SubscribeToOrganization implements IReturnVoid, IPut, IConvertible { int? organizationId; List? postTypes; Frequency? frequency; SubscribeToOrganization({this.organizationId,this.postTypes,this.frequency}); SubscribeToOrganization.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organizationId = json['organizationId']; postTypes = JsonConverters.fromJson(json['postTypes'],'List',context!); frequency = JsonConverters.fromJson(json['frequency'],'Frequency',context!); return this; } Map toJson() => { 'organizationId': organizationId, 'postTypes': JsonConverters.toJson(postTypes,'List',context!), 'frequency': JsonConverters.toJson(frequency,'Frequency',context!) }; createResponse() {} getTypeName() => "SubscribeToOrganization"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'Frequency': TypeInfo(TypeOf.Enum, enumValues:Frequency.values), 'SubscribeToOrganization': TypeInfo(TypeOf.Class, create:() => SubscribeToOrganization()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PostType': TypeInfo(TypeOf.Class, create:() => PostType()), });