BleError.fromJson constructor

BleError.fromJson(
  1. Map<String, dynamic> json
)

Implementation

BleError.fromJson(Map<String, dynamic> json)
    : errorCode = BleErrorCode(json[_BleErrorMetadata.errorCode] ?? 0),
      attErrorCode = json[_BleErrorMetadata.attErrorCode],
      iosErrorCode = json[_BleErrorMetadata.iosErrorCode],
      androidErrorCode = json[_BleErrorMetadata.androidErrorCode],
      reason = json[_BleErrorMetadata.reason] ?? "Reason not provided",
      deviceID = json[_BleErrorMetadata.deviceId],
      serviceUuid = json[_BleErrorMetadata.serviceUuid],
      characteristicUuid = json[_BleErrorMetadata.characteristicUuid],
      descriptorUuid = json[_BleErrorMetadata.descriptorUuid],
      internalMessage = json[_BleErrorMetadata.internalMessage];