BmConnectionStateResponse.fromMap constructor
BmConnectionStateResponse.fromMap(
- Map json
Implementation
factory BmConnectionStateResponse.fromMap(Map<dynamic, dynamic> json) {
return BmConnectionStateResponse(
remoteId: DeviceIdentifier(json['remote_id']),
connectionState: BmConnectionStateEnum.values[json['connection_state'] as int],
disconnectReasonCode: json['disconnect_reason_code'],
disconnectReasonString: json['disconnect_reason_string'],
);
}