toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (name.isNotDefault) 'name': name,
  'displayName': displayName,
  if (metadata case final metadata?) 'metadata': metadata.toJson(),
  if (createTime case final createTime?) 'createTime': createTime.toJson(),
  if (updateTime case final updateTime?) '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,
};