ZywellBluetoothDevice.fromMap constructor

ZywellBluetoothDevice.fromMap(
  1. Object? data
)

Implementation

factory ZywellBluetoothDevice.fromMap(Object? data) {
  final map = HelperFunctions.convertToMap(data);
  return ZywellBluetoothDevice(
    name: map['name'],
    address: map['address'],
    bondedState: map['bonded_state'],
  );
}