toJson method
Implementation
Map<String, dynamic> toJson() {
final decryption = this.decryption;
final description = this.description;
final entitlementArn = this.entitlementArn;
final ingestPort = this.ingestPort;
final maxBitrate = this.maxBitrate;
final maxLatency = this.maxLatency;
final name = this.name;
final protocol = this.protocol;
final streamId = this.streamId;
final vpcInterfaceName = this.vpcInterfaceName;
final whitelistCidr = this.whitelistCidr;
return {
if (decryption != null) 'decryption': decryption,
if (description != null) 'description': description,
if (entitlementArn != null) 'entitlementArn': entitlementArn,
if (ingestPort != null) 'ingestPort': ingestPort,
if (maxBitrate != null) 'maxBitrate': maxBitrate,
if (maxLatency != null) 'maxLatency': maxLatency,
if (name != null) 'name': name,
if (protocol != null) 'protocol': protocol.toValue(),
if (streamId != null) 'streamId': streamId,
if (vpcInterfaceName != null) 'vpcInterfaceName': vpcInterfaceName,
if (whitelistCidr != null) 'whitelistCidr': whitelistCidr,
};
}