toJson method
Implementation
Map<String, dynamic> toJson() {
final asn = this.asn;
final virtualInterfaceName = this.virtualInterfaceName;
final vlan = this.vlan;
final addressFamily = this.addressFamily;
final amazonAddress = this.amazonAddress;
final authKey = this.authKey;
final customerAddress = this.customerAddress;
final directConnectGatewayId = this.directConnectGatewayId;
final mtu = this.mtu;
final tags = this.tags;
final virtualGatewayId = this.virtualGatewayId;
return {
'asn': asn,
'virtualInterfaceName': virtualInterfaceName,
'vlan': vlan,
if (addressFamily != null) 'addressFamily': addressFamily.toValue(),
if (amazonAddress != null) 'amazonAddress': amazonAddress,
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 (virtualGatewayId != null) 'virtualGatewayId': virtualGatewayId,
};
}