Source.fromJson constructor

Source.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Source.fromJson(Map<String, dynamic> json) {
  return Source(
    name: json['name'] as String,
    sourceArn: json['sourceArn'] as String,
    dataTransferSubscriberFeePercent:
        json['dataTransferSubscriberFeePercent'] as int?,
    decryption: json['decryption'] != null
        ? Encryption.fromJson(json['decryption'] as Map<String, dynamic>)
        : null,
    description: json['description'] as String?,
    entitlementArn: json['entitlementArn'] as String?,
    ingestIp: json['ingestIp'] as String?,
    ingestPort: json['ingestPort'] as int?,
    transport: json['transport'] != null
        ? Transport.fromJson(json['transport'] as Map<String, dynamic>)
        : null,
    vpcInterfaceName: json['vpcInterfaceName'] as String?,
    whitelistCidr: json['whitelistCidr'] as String?,
  );
}