toJson method
Implementation
Map<String, dynamic> toJson() {
final protocol = this.protocol;
final cidrAllowList = this.cidrAllowList;
final description = this.description;
final destination = this.destination;
final encryption = this.encryption;
final maxLatency = this.maxLatency;
final name = this.name;
final port = this.port;
final remoteId = this.remoteId;
final smoothingLatency = this.smoothingLatency;
final streamId = this.streamId;
final vpcInterfaceAttachment = this.vpcInterfaceAttachment;
return {
'protocol': protocol.toValue(),
if (cidrAllowList != null) 'cidrAllowList': cidrAllowList,
if (description != null) 'description': description,
if (destination != null) 'destination': destination,
if (encryption != null) 'encryption': encryption,
if (maxLatency != null) 'maxLatency': maxLatency,
if (name != null) 'name': name,
if (port != null) 'port': port,
if (remoteId != null) 'remoteId': remoteId,
if (smoothingLatency != null) 'smoothingLatency': smoothingLatency,
if (streamId != null) 'streamId': streamId,
if (vpcInterfaceAttachment != null)
'vpcInterfaceAttachment': vpcInterfaceAttachment,
};
}