AutomaticInputFailoverSettings.fromJson constructor
AutomaticInputFailoverSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AutomaticInputFailoverSettings.fromJson(Map<String, dynamic> json) {
return AutomaticInputFailoverSettings(
secondaryInputId: json['secondaryInputId'] as String,
errorClearTimeMsec: json['errorClearTimeMsec'] as int?,
failoverConditions: (json['failoverConditions'] as List?)
?.whereNotNull()
.map((e) => FailoverCondition.fromJson(e as Map<String, dynamic>))
.toList(),
inputPreference:
(json['inputPreference'] as String?)?.toInputPreference(),
);
}