/* Options: Date: 2025-05-05 01:43:02 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PatchDialingPermissions.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; /** * Update the specified dialing permissions */ // @Route("/system/dialing-permissions/{isoCode}", "PATCH") // @Api(Description="Update the specified dialing permissions") class PatchDialingPermissions implements IReturnVoid, IPatch, IConvertible { /** * The account ID you are modifying */ // @ApiMember(Description="The account ID you are modifying") String? accountId; /** * The ISO code to patch */ // @ApiMember(Description="The ISO code to patch") String? isoCode; /** * If low risk numbers within this code are enabled */ // @ApiMember(Description="If low risk numbers within this code are enabled") bool? lowRiskNumbersEnabled; /** * If high risk special numbers within this code are enabled */ // @ApiMember(Description="If high risk special numbers within this code are enabled") bool? highRiskSpecialNumbersEnabled; /** * If high risk toll fraud within this code are enabled */ // @ApiMember(Description="If high risk toll fraud within this code are enabled") bool? highRiskTollfraudNumbersEnabled; PatchDialingPermissions({this.accountId,this.isoCode,this.lowRiskNumbersEnabled,this.highRiskSpecialNumbersEnabled,this.highRiskTollfraudNumbersEnabled}); PatchDialingPermissions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; isoCode = json['isoCode']; lowRiskNumbersEnabled = json['lowRiskNumbersEnabled']; highRiskSpecialNumbersEnabled = json['highRiskSpecialNumbersEnabled']; highRiskTollfraudNumbersEnabled = json['highRiskTollfraudNumbersEnabled']; return this; } Map toJson() => { 'accountId': accountId, 'isoCode': isoCode, 'lowRiskNumbersEnabled': lowRiskNumbersEnabled, 'highRiskSpecialNumbersEnabled': highRiskSpecialNumbersEnabled, 'highRiskTollfraudNumbersEnabled': highRiskTollfraudNumbersEnabled }; createResponse() {} getTypeName() => "PatchDialingPermissions"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'PatchDialingPermissions': TypeInfo(TypeOf.Class, create:() => PatchDialingPermissions()), });