/* Options: Date: 2025-12-06 05:34:06 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://geniuslink-api-zane.dev.platform.georiot.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostAutopilotOptionsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum AutopilotFrequency { Daily, Hourly, Once, } enum AutopilotLevel { ShortLink, Group, Account, } // @DataContract class PostAutopilotOptionsResponse implements IConvertible { // @DataMember(Name="responseStatus") ResponseStatus? responseStatus; // @DataMember(Name="success") bool? success; PostAutopilotOptionsResponse({this.responseStatus,this.success}); PostAutopilotOptionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); success = json['success']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'success': success }; getTypeName() => "PostAutopilotOptionsResponse"; TypeContext? context = _ctx; } // @Route("/v4/autopilot-options", "POST") // @Route("/v3.5/autopilot-options", "POST") // @DataContract class PostAutopilotOptionsRequest implements IReturn, IConvertible, IPost { // @DataMember(Name="frequency") AutopilotFrequency? frequency; // @DataMember(Name="level") AutopilotLevel? level; // @DataMember(Name="enabled") bool? enabled; // @DataMember(Name="identifier") String? identifier; // @DataMember(Name="choicePageOptions") Map? choicePageOptions; PostAutopilotOptionsRequest({this.frequency,this.level,this.enabled,this.identifier,this.choicePageOptions}); PostAutopilotOptionsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { frequency = JsonConverters.fromJson(json['frequency'],'AutopilotFrequency',context!); level = JsonConverters.fromJson(json['level'],'AutopilotLevel',context!); enabled = json['enabled']; identifier = json['identifier']; choicePageOptions = JsonConverters.toStringMap(json['choicePageOptions']); return this; } Map toJson() => { 'frequency': JsonConverters.toJson(frequency,'AutopilotFrequency',context!), 'level': JsonConverters.toJson(level,'AutopilotLevel',context!), 'enabled': enabled, 'identifier': identifier, 'choicePageOptions': choicePageOptions }; createResponse() => PostAutopilotOptionsResponse(); getResponseTypeName() => "PostAutopilotOptionsResponse"; getTypeName() => "PostAutopilotOptionsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'geniuslink_api_zane.dev.platform.georiot.com', types: { 'AutopilotFrequency': TypeInfo(TypeOf.Enum, enumValues:AutopilotFrequency.values), 'AutopilotLevel': TypeInfo(TypeOf.Enum, enumValues:AutopilotLevel.values), 'PostAutopilotOptionsResponse': TypeInfo(TypeOf.Class, create:() => PostAutopilotOptionsResponse()), 'PostAutopilotOptionsRequest': TypeInfo(TypeOf.Class, create:() => PostAutopilotOptionsRequest()), });