toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (name.isNotDefault) 'name': name,
  if (createTime != null) 'createTime': createTime!.toJson(),
  if (updateTime != null) 'updateTime': updateTime!.toJson(),
  if (etag.isNotDefault) 'etag': etag,
  if (labels.isNotDefault) 'labels': labels,
  if (description.isNotDefault) 'description': description,
  if (scheduleConfig != null) 'scheduleConfig': scheduleConfig!.toJson(),
  if (featureSelectionConfig != null)
    'featureSelectionConfig': featureSelectionConfig!.toJson(),
};