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