toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final addressFamily = this.addressFamily;
  final amazonAddress = this.amazonAddress;
  final asn = this.asn;
  final authKey = this.authKey;
  final customerAddress = this.customerAddress;
  return {
    if (addressFamily != null) 'addressFamily': addressFamily.toValue(),
    if (amazonAddress != null) 'amazonAddress': amazonAddress,
    if (asn != null) 'asn': asn,
    if (authKey != null) 'authKey': authKey,
    if (customerAddress != null) 'customerAddress': customerAddress,
  };
}