toMap method
toMap is the method to convert the android device information to map.
Implementation
Map<String, dynamic> toMap() {
return {
'system': system?.toMap(),
'cpu': cpu?.toMap(),
'android': android?.toMap(),
'drmInfo': drmInfo?.toMap(),
'memory': memory?.toMap(),
'camera': camera?.toMap(),
'battery': battery?.toMap(),
'display': display?.toMap(),
'thermal': thermal?.toMap(),
'network': network?.toMap(),
'simInfo': simInfo?.toMap(),
'systemFile': systemFile?.toMap(),
};
}