StreamInfo.fromJson constructor

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

Implementation

factory StreamInfo.fromJson(Map<String, dynamic> json) {
  return StreamInfo(
    creationTime: timeStampFromJson(json['CreationTime']),
    dataRetentionInHours: json['DataRetentionInHours'] as int?,
    deviceName: json['DeviceName'] as String?,
    kmsKeyId: json['KmsKeyId'] as String?,
    mediaType: json['MediaType'] as String?,
    status: (json['Status'] as String?)?.toStatus(),
    streamARN: json['StreamARN'] as String?,
    streamName: json['StreamName'] as String?,
    version: json['Version'] as String?,
  );
}