MultiplexProgramSettings.fromJson constructor

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

Implementation

factory MultiplexProgramSettings.fromJson(Map<String, dynamic> json) {
  return MultiplexProgramSettings(
    programNumber: json['programNumber'] as int,
    preferredChannelPipeline: (json['preferredChannelPipeline'] as String?)
        ?.toPreferredChannelPipeline(),
    serviceDescriptor: json['serviceDescriptor'] != null
        ? MultiplexProgramServiceDescriptor.fromJson(
            json['serviceDescriptor'] as Map<String, dynamic>)
        : null,
    videoSettings: json['videoSettings'] != null
        ? MultiplexVideoSettings.fromJson(
            json['videoSettings'] as Map<String, dynamic>)
        : null,
  );
}