SegmentImportResource.fromJson constructor
SegmentImportResource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SegmentImportResource.fromJson(Map<String, dynamic> json) {
return SegmentImportResource(
externalId: json['ExternalId'] as String,
format: (json['Format'] as String).toFormat(),
roleArn: json['RoleArn'] as String,
s3Url: json['S3Url'] as String,
size: json['Size'] as int,
channelCounts: (json['ChannelCounts'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as int)),
);
}