toMap method
API Documentation for toMap.
Implementation
Map<String, Object> toMap() => <String, Object>{
'platform': platform,
'isWeb': isWeb,
'isDesktop': isDesktop,
'isMobile': isMobile,
'camera': camera,
'audio': audio,
'bluetooth': bluetooth,
'location': location,
'biometrics': biometrics,
'sensors': sensors,
'haptics': haptics,
'storage': storage,
'health': health,
'nativeCameraPreview': nativeCameraPreview,
'featureMatrix': featureMatrix.map(
(feature, support) => MapEntry(feature.name, support.toMap()),
),
};