InputLossBehavior.fromJson constructor

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

Implementation

factory InputLossBehavior.fromJson(Map<String, dynamic> json) {
  return InputLossBehavior(
    blackFrameMsec: json['blackFrameMsec'] as int?,
    inputLossImageColor: json['inputLossImageColor'] as String?,
    inputLossImageSlate: json['inputLossImageSlate'] != null
        ? InputLocation.fromJson(
            json['inputLossImageSlate'] as Map<String, dynamic>)
        : null,
    inputLossImageType:
        (json['inputLossImageType'] as String?)?.toInputLossImageType(),
    repeatFrameMsec: json['repeatFrameMsec'] as int?,
  );
}