Peripheral.fromJson constructor

Peripheral.fromJson(
  1. Map<String, dynamic> json,
  2. ManagerForPeripheral manager
)

Implementation

Peripheral.fromJson(Map<String, dynamic> json, ManagerForPeripheral manager)
    : _manager = manager,
      name = json[_PeripheralMetadata.name],
      identifier = json[_PeripheralMetadata.identifier];