VideoSelector.fromJson constructor

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

Implementation

factory VideoSelector.fromJson(Map<String, dynamic> json) {
  return VideoSelector(
    alphaBehavior: (json['alphaBehavior'] as String?)?.toAlphaBehavior(),
    colorSpace: (json['colorSpace'] as String?)?.toColorSpace(),
    colorSpaceUsage:
        (json['colorSpaceUsage'] as String?)?.toColorSpaceUsage(),
    hdr10Metadata: json['hdr10Metadata'] != null
        ? Hdr10Metadata.fromJson(
            json['hdr10Metadata'] as Map<String, dynamic>)
        : null,
    pid: json['pid'] as int?,
    programNumber: json['programNumber'] as int?,
    rotate: (json['rotate'] as String?)?.toInputRotate(),
  );
}