InputDeviceHdSettings.fromJson constructor

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

Implementation

factory InputDeviceHdSettings.fromJson(Map<String, dynamic> json) {
  return InputDeviceHdSettings(
    activeInput: (json['activeInput'] as String?)?.toInputDeviceActiveInput(),
    configuredInput:
        (json['configuredInput'] as String?)?.toInputDeviceConfiguredInput(),
    deviceState: (json['deviceState'] as String?)?.toInputDeviceState(),
    framerate: json['framerate'] as double?,
    height: json['height'] as int?,
    maxBitrate: json['maxBitrate'] as int?,
    scanType: (json['scanType'] as String?)?.toInputDeviceScanType(),
    width: json['width'] as int?,
  );
}