toJson method

  1. @override
Object toJson()
override

Implementation

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