toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
'displayName': displayName,
if (metadata case final $1?) 'metadata': $1.toJson(),
'createTime': ?createTime?.toJson(),
'updateTime': ?updateTime?.toJson(),
if (annotationFilter.isNotDefault) 'annotationFilter': annotationFilter,
'problemType': problemType,
if (annotationSpecCount.isNotDefault)
'annotationSpecCount': annotationSpecCount,
if (etag.isNotDefault) 'etag': etag,
if (supportAutomlTraining.isNotDefault)
'supportAutomlTraining': supportAutomlTraining,
};