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