toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'architecture': ?architecture,
  'autoCreated': ?autoCreated,
  'chainName': ?chainName,
  'creationSizeBytes': ?creationSizeBytes?.toString(),
  'creationTimestamp': ?creationTimestamp,
  'description': ?description,
  'diskSizeGb': ?diskSizeGb?.toString(),
  'downloadBytes': ?downloadBytes?.toString(),
  'enableConfidentialCompute': ?enableConfidentialCompute,
  'guestFlush': ?guestFlush,
  if (guestOsFeatures.isNotDefault)
    'guestOsFeatures': [for (final i in guestOsFeatures) i.toJson()],
  'id': ?id?.toString(),
  'kind': ?kind,
  'labelFingerprint': ?labelFingerprint,
  if (labels.isNotDefault) 'labels': labels,
  if (licenseCodes.isNotDefault)
    'licenseCodes': [for (final i in licenseCodes) i.toString()],
  if (licenses.isNotDefault) 'licenses': licenses,
  'locationHint': ?locationHint,
  'name': ?name,
  'params': ?params?.toJson(),
  'region': ?region,
  'satisfiesPzi': ?satisfiesPzi,
  'satisfiesPzs': ?satisfiesPzs,
  'selfLink': ?selfLink,
  'snapshotEncryptionKey': ?snapshotEncryptionKey?.toJson(),
  'snapshotGroupId': ?snapshotGroupId,
  'snapshotGroupName': ?snapshotGroupName,
  'snapshotType': ?snapshotType,
  'sourceDisk': ?sourceDisk,
  'sourceDiskEncryptionKey': ?sourceDiskEncryptionKey?.toJson(),
  'sourceDiskForRecoveryCheckpoint': ?sourceDiskForRecoveryCheckpoint,
  'sourceDiskId': ?sourceDiskId,
  'sourceInstantSnapshot': ?sourceInstantSnapshot,
  'sourceInstantSnapshotEncryptionKey': ?sourceInstantSnapshotEncryptionKey
      ?.toJson(),
  'sourceInstantSnapshotId': ?sourceInstantSnapshotId,
  'sourceSnapshotSchedulePolicy': ?sourceSnapshotSchedulePolicy,
  'sourceSnapshotSchedulePolicyId': ?sourceSnapshotSchedulePolicyId,
  'status': ?status,
  'storageBytes': ?storageBytes?.toString(),
  'storageBytesStatus': ?storageBytesStatus,
  if (storageLocations.isNotDefault) 'storageLocations': storageLocations,
};