toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
'displayName': displayName,
if (description.isNotDefault) 'description': description,
'spec': ?spec?.toJson(),
'createTime': ?createTime?.toJson(),
'updateTime': ?updateTime?.toJson(),
if (etag.isNotDefault) 'etag': etag,
'contextSpec': ?contextSpec?.toJson(),
'encryptionSpec': ?encryptionSpec?.toJson(),
if (labels.isNotDefault) 'labels': labels,
'trafficConfig': ?trafficConfig?.toJson(),
};