/* Options: Date: 2025-05-05 00:54:18 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: AppSearchPhoneNumbers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum EndpointTypes { PhoneNumber, User, FaxNumber, EmailAddress, Unused_1, Unused_2, Unused_3, Unused_4, Unused_5, Team, Assistant, } class AppSearchPhoneNumberInfo implements IConvertible { String? phoneNumber; AppSearchPhoneNumberInfo({this.phoneNumber}); AppSearchPhoneNumberInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { phoneNumber = json['phoneNumber']; return this; } Map toJson() => { 'phoneNumber': phoneNumber }; getTypeName() => "AppSearchPhoneNumberInfo"; TypeContext? context = _ctx; } class AppSearchPhoneNumbersResponse implements IConvertible { List? numbers; AppSearchPhoneNumbersResponse({this.numbers}); AppSearchPhoneNumbersResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { numbers = JsonConverters.fromJson(json['numbers'],'List',context!); return this; } Map toJson() => { 'numbers': JsonConverters.toJson(numbers,'List',context!) }; getTypeName() => "AppSearchPhoneNumbersResponse"; TypeContext? context = _ctx; } // @Route("/portal/search-phone-numbers", "GET") class AppSearchPhoneNumbers implements IReturn, IConvertible, IGet { String? accountId; String? customerId; String? areaCode; String? countryCode; String? postalCode; String? contains; int? distance; EndpointTypes? phoneNumberType; AppSearchPhoneNumbers({this.accountId,this.customerId,this.areaCode,this.countryCode,this.postalCode,this.contains,this.distance,this.phoneNumberType}); AppSearchPhoneNumbers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; customerId = json['customerId']; areaCode = json['areaCode']; countryCode = json['countryCode']; postalCode = json['postalCode']; contains = json['contains']; distance = json['distance']; phoneNumberType = JsonConverters.fromJson(json['phoneNumberType'],'EndpointTypes',context!); return this; } Map toJson() => { 'accountId': accountId, 'customerId': customerId, 'areaCode': areaCode, 'countryCode': countryCode, 'postalCode': postalCode, 'contains': contains, 'distance': distance, 'phoneNumberType': JsonConverters.toJson(phoneNumberType,'EndpointTypes',context!) }; createResponse() => AppSearchPhoneNumbersResponse(); getResponseTypeName() => "AppSearchPhoneNumbersResponse"; getTypeName() => "AppSearchPhoneNumbers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'EndpointTypes': TypeInfo(TypeOf.Enum, enumValues:EndpointTypes.values), 'AppSearchPhoneNumberInfo': TypeInfo(TypeOf.Class, create:() => AppSearchPhoneNumberInfo()), 'AppSearchPhoneNumbersResponse': TypeInfo(TypeOf.Class, create:() => AppSearchPhoneNumbersResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AppSearchPhoneNumbers': TypeInfo(TypeOf.Class, create:() => AppSearchPhoneNumbers()), });