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