toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
'displayName': displayName,
if (description.isNotDefault) 'description': description,
if (isDefault.isNotDefault) 'isDefault': isDefault,
'machineSpec': ?machineSpec?.toJson(),
'dataPersistentDiskSpec': ?dataPersistentDiskSpec?.toJson(),
'networkSpec': ?networkSpec?.toJson(),
if (serviceAccount.isNotDefault) 'serviceAccount': serviceAccount,
if (etag.isNotDefault) 'etag': etag,
if (labels.isNotDefault) 'labels': labels,
'idleShutdownConfig': ?idleShutdownConfig?.toJson(),
'eucConfig': ?eucConfig?.toJson(),
'createTime': ?createTime?.toJson(),
'updateTime': ?updateTime?.toJson(),
if (notebookRuntimeType.isNotDefault)
'notebookRuntimeType': notebookRuntimeType.toJson(),
'shieldedVmConfig': ?shieldedVmConfig?.toJson(),
if (networkTags.isNotDefault) 'networkTags': networkTags,
'encryptionSpec': ?encryptionSpec?.toJson(),
'softwareConfig': ?softwareConfig?.toJson(),
};