CaptionSource.fromJson constructor

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

Implementation

factory CaptionSource.fromJson(Map<String, dynamic> json) {
  return CaptionSource(
    encryption: json['Encryption'] != null
        ? Encryption.fromJson(json['Encryption'] as Map<String, dynamic>)
        : null,
    key: json['Key'] as String?,
    label: json['Label'] as String?,
    language: json['Language'] as String?,
    timeOffset: json['TimeOffset'] as String?,
  );
}