toMap method

Map<String, bool> toMap()

Converts this configuration to the platform channel payload.

Implementation

Map<String, bool> toMap() {
  return {
    'keyboard': keyboard != null,
    'lifecycle': lifecycle != null,
    'network': network != null,
    'memory': memory != null,
    'battery': battery != null,
    'orientation': orientation != null,
    'time': time != null,
    'screen': screen != null,
    'screenshot': screenshot != null,
    'thermal': thermal != null,
  };
}