Serializes this plugin configuration to a JSON-compatible map.
Map<String, dynamic> toJson() => { 'name': name, 'config': config, };