Characteristic.fromJson constructor

Characteristic.fromJson(
  1. Map<String, dynamic> jsonObject,
  2. Service service,
  3. ManagerForCharacteristic manager
)

Implementation

Characteristic.fromJson(Map<String, dynamic> jsonObject, Service service,
    ManagerForCharacteristic manager)
    : _manager = manager,
      service = service,
      uuid = jsonObject[_CharacteristicMetadata.uuid],
      isReadable = jsonObject[_CharacteristicMetadata.isReadable],
      isWritableWithResponse =
          jsonObject[_CharacteristicMetadata.isWritableWithResponse],
      isWritableWithoutResponse =
          jsonObject[_CharacteristicMetadata.isWritableWithoutResponse],
      isNotifiable = jsonObject[_CharacteristicMetadata.isNotifiable],
      isIndicatable = jsonObject[_CharacteristicMetadata.isIndicatable],
      super(jsonObject[_CharacteristicMetadata.id]);