toMap method

Map<String, Object?> toMap()

API Documentation for toMap.

Implementation

Map<String, Object?> toMap() => <String, Object?>{
      'generatedAt': generatedAt.toIso8601String(),
      'platformVersion': platformVersion,
      'capabilities': capabilities.toMap(),
      'storage': storage?.toMap(),
      'battery': battery?.toMap(),
      'wifi': wifi?.toMap(),
      'device': device?.toMap(),
      'connectivity': connectivity?.toMap(),
    };