HeadsetState.formJson constructor
- Map map
Implementation
HeadsetState.formJson(Map<dynamic, dynamic> map) {
int wiredInt = map['wired'] == null ? -1 : map['wired'] as int;
int bluetoothInt = map['bluetooth'] == null ? -1 : map['bluetooth'] as int;
wired = _stateEnum(wiredInt);
bluetooth = _stateEnum(bluetoothInt);
}