RemoteStreamSwitch.fromMap constructor Null safety
- Map map
Implementation
factory RemoteStreamSwitch.fromMap(Map<dynamic, dynamic> map) {
return RemoteStreamSwitch(
uid: map['uid'],
isScreen: map['isScreen'],
beforeVideoIndex: map['beforeVideoIndex'],
afterVideoIndex: map['afterVideoIndex'],
beforeEnable: map['beforeEnable'],
afterEnable: map['afterEnable'],
reason: (map['reason'] as int).fallbackOrRecoverReason);
}