toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      'isEmulator': isEmulator,
      'model': model,

      /// only Android
      'product': product,
      'display': display,
      'type': type,
      'version': version == null ? null : version!.toMap(),
      'manufacturer': manufacturer,
      'tags': tags,
      'bootloader': bootloader,
      'fingerprint': fingerprint,
      'host': host,
      'id': id,
      'isDeviceRoot': isDeviceRoot,
      'brand': brand,
      'device': device,
      'deviceId': deviceId,
      'generateDeviceId': generateDeviceId,
      'board': board,
      'androidId': androidId,
      'hardware': hardware,

      /// only ios
      'systemName': systemName,
      'uuid': uuid,
      'uts': uts == null ? null : uts!.toMap(),
      'localizedModel': localizedModel,
      'systemVersion': systemVersion,
      'name': name,
      'address': address,
      'addresses': addresses
    };