toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['product'] = product;
  data['isEmulator'] = isEmulator;
  data['display'] = display;
  data['type'] = type;
  if (version != null) data['version'] = version!.toJson();
  data['manufacturer'] = manufacturer;
  data['tags'] = tags;
  data['bootloader'] = bootloader;
  data['fingerprint'] = fingerprint;
  data['host'] = host;
  data['model'] = model;
  data['id'] = id;
  data['isDeviceRoot'] = isDeviceRoot;
  data['brand'] = brand;
  data['device'] = device;
  data['board'] = board;
  data['androidId'] = androidId;
  data['hardware'] = hardware;
  return data;
}