toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
'slice': ?slice?.toJson(),
if (metricsSchemaUri.isNotDefault) 'metricsSchemaUri': metricsSchemaUri,
if (metrics case final $1?) 'metrics': $1.toJson(),
'createTime': ?createTime?.toJson(),
'modelExplanation': ?modelExplanation?.toJson(),
};