toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
if (slice != null) 'slice': slice!.toJson(),
if (metricsSchemaUri.isNotDefault) 'metricsSchemaUri': metricsSchemaUri,
if (metrics != null) 'metrics': metrics!.toJson(),
if (createTime != null) 'createTime': createTime!.toJson(),
if (modelExplanation != null)
'modelExplanation': modelExplanation!.toJson(),
};