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