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;
  final directConnectGatewayId = this.directConnectGatewayId;
  final mtu = this.mtu;
  final tags = this.tags;
  final virtualInterfaceName = this.virtualInterfaceName;
  final vlan = this.vlan;
  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,
    if (directConnectGatewayId != null)
      'directConnectGatewayId': directConnectGatewayId,
    if (mtu != null) 'mtu': mtu,
    if (tags != null) 'tags': tags,
    if (virtualInterfaceName != null)
      'virtualInterfaceName': virtualInterfaceName,
    if (vlan != null) 'vlan': vlan,
  };
}