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