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