/* Options: Date: 2025-05-04 23:45:27 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: SearchPhoneNumbers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; /** * Search for phone numbers */ // @Route("/endpoints/phone-numbers/search", "GET") // @Api(Description="Search for phone numbers") class SearchPhoneNumbers implements IReturn>, IGet, IConvertible { /** * The account you are searching for */ // @ApiMember(Description="The account you are searching for") String? accountId; /** * The area code */ // @ApiMember(Description="The area code") String? areaCode; /** * The country code you are searching for */ // @ApiMember(Description="The country code you are searching for") String? countryCode; /** * The postal code you are searching for */ // @ApiMember(Description="The postal code you are searching for") String? postalCode; /** * The distance from the specified postal code (default is 100) */ // @ApiMember(Description="The distance from the specified postal code (default is 100)") int? distance; /** * Search for fax numbers */ // @ApiMember(Description="Search for fax numbers") bool? isFaxNumber; /** * Contains specific digits */ // @ApiMember(Description="Contains specific digits") String? contains; SearchPhoneNumbers({this.accountId,this.areaCode,this.countryCode,this.postalCode,this.distance,this.isFaxNumber,this.contains}); SearchPhoneNumbers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; areaCode = json['areaCode']; countryCode = json['countryCode']; postalCode = json['postalCode']; distance = json['distance']; isFaxNumber = json['isFaxNumber']; contains = json['contains']; return this; } Map toJson() => { 'accountId': accountId, 'areaCode': areaCode, 'countryCode': countryCode, 'postalCode': postalCode, 'distance': distance, 'isFaxNumber': isFaxNumber, 'contains': contains }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "SearchPhoneNumbers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'List': TypeInfo(TypeOf.Class, create:() => []), 'PhoneNumberInfo': TypeInfo(TypeOf.Class, create:() => PhoneNumberInfo()), 'SearchPhoneNumbers': TypeInfo(TypeOf.Class, create:() => SearchPhoneNumbers()), });