/* Options: Date: 2025-05-05 01:23:00 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: GetDialingPermissions.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class DialingPermissionInfo implements IConvertible { String? isoCode; String? name; bool? lowRiskNumbersEnabled; bool? highRiskSpecialNumbersEnabled; bool? highRiskTollfraudNumbersEnabled; DialingPermissionInfo({this.isoCode,this.name,this.lowRiskNumbersEnabled,this.highRiskSpecialNumbersEnabled,this.highRiskTollfraudNumbersEnabled}); DialingPermissionInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { isoCode = json['isoCode']; name = json['name']; lowRiskNumbersEnabled = json['lowRiskNumbersEnabled']; highRiskSpecialNumbersEnabled = json['highRiskSpecialNumbersEnabled']; highRiskTollfraudNumbersEnabled = json['highRiskTollfraudNumbersEnabled']; return this; } Map toJson() => { 'isoCode': isoCode, 'name': name, 'lowRiskNumbersEnabled': lowRiskNumbersEnabled, 'highRiskSpecialNumbersEnabled': highRiskSpecialNumbersEnabled, 'highRiskTollfraudNumbersEnabled': highRiskTollfraudNumbersEnabled }; getTypeName() => "DialingPermissionInfo"; TypeContext? context = _ctx; } class GetDialingPermissionsResponse implements IConvertible { List? permissions; GetDialingPermissionsResponse({this.permissions}); GetDialingPermissionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { permissions = JsonConverters.fromJson(json['permissions'],'List',context!); return this; } Map toJson() => { 'permissions': JsonConverters.toJson(permissions,'List',context!) }; getTypeName() => "GetDialingPermissionsResponse"; TypeContext? context = _ctx; } /** * Get all of the country based dialing permissions for this account */ // @Route("/system/dialing-permissions", "GET") // @Api(Description="Get all of the country based dialing permissions for this account") class GetDialingPermissions implements IReturn, IGet, IConvertible { /** * The account ID you want to retrieve for */ // @ApiMember(Description="The account ID you want to retrieve for") String? accountId; GetDialingPermissions({this.accountId}); GetDialingPermissions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; return this; } Map toJson() => { 'accountId': accountId }; createResponse() => GetDialingPermissionsResponse(); getResponseTypeName() => "GetDialingPermissionsResponse"; getTypeName() => "GetDialingPermissions"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'DialingPermissionInfo': TypeInfo(TypeOf.Class, create:() => DialingPermissionInfo()), 'GetDialingPermissionsResponse': TypeInfo(TypeOf.Class, create:() => GetDialingPermissionsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDialingPermissions': TypeInfo(TypeOf.Class, create:() => GetDialingPermissions()), });