getBleDevices static method

List<DeviceBle> getBleDevices(
  1. Map<String, dynamic> json
)

Implementation

static List<DeviceBle> getBleDevices(Map<String, dynamic> json) {
  List<DeviceBle> bleDevices = [];
  if (json['devices'].runtimeType != Null ||
      json['devices'].toString() != 'null') {
    json['devices'].forEach((v) {
      bleDevices.add(DeviceBle.fromJson(v));
    });
  }

  return bleDevices;
}