core.Map<core.String, core.dynamic> toJson() => { if (pluginInstance != null) 'pluginInstance': pluginInstance!, };