toMap method

  1. @override
Map<String, dynamic> toMap()
override

Generate a Map<String,dynamic> object for sensing the configuration via MethodChannel. Sending the configuration object through the MethodChannel, we have to use a Map object.

If you need to save the data into database, please set DatabaseType.DEFAULT to dbType. In the setting, iOS uses Realm, and Android uses Room database internally. In addition, If you do NOT want to save data into database, please set NONE as a dbType.

When you call -toMap(), the method converts the dbType element depends on the current platform.

Implementation

@override
Map<String, dynamic> toMap() {
  var map = super.toMap();
  return map;
}