BmReadRssiResult.fromMap constructor

BmReadRssiResult.fromMap(
  1. Map json
)

Implementation

factory BmReadRssiResult.fromMap(Map<dynamic, dynamic> json) {
  return BmReadRssiResult(
    remoteId: DeviceIdentifier(json['remote_id']),
    rssi: json['rssi'],
    success: json['success'] != 0,
    errorCode: json['error_code'],
    errorString: json['error_string'],
  );
}