/* Options: Date: 2025-05-04 23:45:43 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: NewAddress.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AddressInfo implements IConvertible { String? id; String? friendlyName; bool? emergencyEnabled; String? customerName; String? street; String? city; String? region; String? postalCode; String? isoCountry; AddressInfo({this.id,this.friendlyName,this.emergencyEnabled,this.customerName,this.street,this.city,this.region,this.postalCode,this.isoCountry}); AddressInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; friendlyName = json['friendlyName']; emergencyEnabled = json['emergencyEnabled']; customerName = json['customerName']; street = json['street']; city = json['city']; region = json['region']; postalCode = json['postalCode']; isoCountry = json['isoCountry']; return this; } Map toJson() => { 'id': id, 'friendlyName': friendlyName, 'emergencyEnabled': emergencyEnabled, 'customerName': customerName, 'street': street, 'city': city, 'region': region, 'postalCode': postalCode, 'isoCountry': isoCountry }; getTypeName() => "AddressInfo"; TypeContext? context = _ctx; } /** * Create a new business address to be used with e911 */ // @Route("/addresses", "POST") // @Api(Description="Create a new business address to be used with e911") class NewAddress implements IReturn, IConvertible, IPost { String? accountId; String? friendlyName; bool? emergencyEnabled; String? customerName; String? street; String? city; String? region; String? postalCode; String? isoCountry; NewAddress({this.accountId,this.friendlyName,this.emergencyEnabled,this.customerName,this.street,this.city,this.region,this.postalCode,this.isoCountry}); NewAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; friendlyName = json['friendlyName']; emergencyEnabled = json['emergencyEnabled']; customerName = json['customerName']; street = json['street']; city = json['city']; region = json['region']; postalCode = json['postalCode']; isoCountry = json['isoCountry']; return this; } Map toJson() => { 'accountId': accountId, 'friendlyName': friendlyName, 'emergencyEnabled': emergencyEnabled, 'customerName': customerName, 'street': street, 'city': city, 'region': region, 'postalCode': postalCode, 'isoCountry': isoCountry }; createResponse() => AddressInfo(); getResponseTypeName() => "AddressInfo"; getTypeName() => "NewAddress"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'AddressInfo': TypeInfo(TypeOf.Class, create:() => AddressInfo()), 'NewAddress': TypeInfo(TypeOf.Class, create:() => NewAddress()), });