BleCharacteristic.fromMap constructor
Constructs a BleCharacteristic from a map.
The map must contain keys 'uuid', 'properties', and 'permissions' with appropriate values.
Implementation
factory BleCharacteristic.fromMap(Map<String, dynamic> map) {
return BleCharacteristic(
address: map['address'] as String,
uuid: map['uuid'] as String,
properties: BleCharacteristicProperty.fromInt(map['properties'] as int),
permissions: map['permissions'] != null
? BleCharacteristicPermission.fromInt(map['permissions'] as int)
: null,
);
}