getBleConfig static method

DeviceBleConfig getBleConfig(
  1. Map<String, dynamic> json
)

Implementation

static DeviceBleConfig getBleConfig(Map<String, dynamic> json) {
  if (json.containsKey("ble") &&
      json['ble'].runtimeType != Null &&
      json['ble'] != null &&
      json['ble'].toString() != 'null') {
    return DeviceBleConfig.fromJson(json["ble"]);
  }

  return DeviceBleConfig();
}