toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
'runtimeUser': runtimeUser,
'notebookRuntimeTemplateRef': ?notebookRuntimeTemplateRef?.toJson(),
if (proxyUri.isNotDefault) 'proxyUri': proxyUri,
'createTime': ?createTime?.toJson(),
'updateTime': ?updateTime?.toJson(),
if (healthState.isNotDefault) 'healthState': healthState.toJson(),
'displayName': displayName,
if (description.isNotDefault) 'description': description,
if (serviceAccount.isNotDefault) 'serviceAccount': serviceAccount,
if (runtimeState.isNotDefault) 'runtimeState': runtimeState.toJson(),
if (isUpgradable.isNotDefault) 'isUpgradable': isUpgradable,
if (labels.isNotDefault) 'labels': labels,
'expirationTime': ?expirationTime?.toJson(),
if (version.isNotDefault) 'version': version,
if (notebookRuntimeType.isNotDefault)
'notebookRuntimeType': notebookRuntimeType.toJson(),
'machineSpec': ?machineSpec?.toJson(),
'dataPersistentDiskSpec': ?dataPersistentDiskSpec?.toJson(),
'networkSpec': ?networkSpec?.toJson(),
'idleShutdownConfig': ?idleShutdownConfig?.toJson(),
'eucConfig': ?eucConfig?.toJson(),
'shieldedVmConfig': ?shieldedVmConfig?.toJson(),
if (networkTags.isNotDefault) 'networkTags': networkTags,
'softwareConfig': ?softwareConfig?.toJson(),
'encryptionSpec': ?encryptionSpec?.toJson(),
if (satisfiesPzs.isNotDefault) 'satisfiesPzs': satisfiesPzs,
if (satisfiesPzi.isNotDefault) 'satisfiesPzi': satisfiesPzi,
};