toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'architecture': ?architecture,
  'archiveSizeBytes': ?archiveSizeBytes?.toString(),
  'creationTimestamp': ?creationTimestamp,
  'deprecated': ?deprecated?.toJson(),
  'description': ?description,
  'diskSizeGb': ?diskSizeGb?.toString(),
  'enableConfidentialCompute': ?enableConfidentialCompute,
  'family': ?family,
  if (guestOsFeatures.isNotDefault)
    'guestOsFeatures': [for (final i in guestOsFeatures) i.toJson()],
  'id': ?id?.toString(),
  'imageEncryptionKey': ?imageEncryptionKey?.toJson(),
  '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,
  'name': ?name,
  'params': ?params?.toJson(),
  'rawDisk': ?rawDisk?.toJson(),
  'satisfiesPzi': ?satisfiesPzi,
  'satisfiesPzs': ?satisfiesPzs,
  'selfLink': ?selfLink,
  'shieldedInstanceInitialState': ?shieldedInstanceInitialState?.toJson(),
  'sourceDisk': ?sourceDisk,
  'sourceDiskEncryptionKey': ?sourceDiskEncryptionKey?.toJson(),
  'sourceDiskId': ?sourceDiskId,
  'sourceImage': ?sourceImage,
  'sourceImageEncryptionKey': ?sourceImageEncryptionKey?.toJson(),
  'sourceImageId': ?sourceImageId,
  'sourceSnapshot': ?sourceSnapshot,
  'sourceSnapshotEncryptionKey': ?sourceSnapshotEncryptionKey?.toJson(),
  'sourceSnapshotId': ?sourceSnapshotId,
  'sourceType': ?sourceType,
  'status': ?status,
  if (storageLocations.isNotDefault) 'storageLocations': storageLocations,
};