/* Options: Date: 2024-11-13 06:30:34 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EnsureActionUrl.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum ActionUrlHttpMethods { GET, POST, } /** * Ensures that the specified app user endpoint has the action URL mentioned */ // @Route("/app/ensure-action-url", "POST") // @Api(Description="Ensures that the specified app user endpoint has the action URL mentioned") class EnsureActionUrl implements IReturnVoid, IPost, IConvertible { /** * The URL to use */ // @ApiMember(Description="The URL to use") String? url; /** * Clear existing action URLs first */ // @ApiMember(Description="Clear existing action URLs first") bool? clearExisting; /** * The HTTP method to use */ // @ApiMember(Description="The HTTP method to use") ActionUrlHttpMethods? method; EnsureActionUrl({this.url,this.clearExisting,this.method}); EnsureActionUrl.fromJson(Map json) { fromMap(json); } fromMap(Map json) { url = json['url']; clearExisting = json['clearExisting']; method = JsonConverters.fromJson(json['method'],'ActionUrlHttpMethods',context!); return this; } Map toJson() => { 'url': url, 'clearExisting': clearExisting, 'method': JsonConverters.toJson(method,'ActionUrlHttpMethods',context!) }; createResponse() {} getTypeName() => "EnsureActionUrl"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'evovoice.io', types: { 'ActionUrlHttpMethods': TypeInfo(TypeOf.Enum, enumValues:ActionUrlHttpMethods.values), 'EnsureActionUrl': TypeInfo(TypeOf.Class, create:() => EnsureActionUrl()), });