toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (advancedMachineFeatures != null)
        'advancedMachineFeatures': advancedMachineFeatures!,
      if (canIpForward != null) 'canIpForward': canIpForward!,
      if (confidentialInstanceConfig != null)
        'confidentialInstanceConfig': confidentialInstanceConfig!,
      if (cpuPlatform != null) 'cpuPlatform': cpuPlatform!,
      if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
      if (deletionProtection != null)
        'deletionProtection': deletionProtection!,
      if (description != null) 'description': description!,
      if (disks != null) 'disks': disks!,
      if (displayDevice != null) 'displayDevice': displayDevice!,
      if (fingerprint != null) 'fingerprint': fingerprint!,
      if (guestAccelerators != null) 'guestAccelerators': guestAccelerators!,
      if (hostname != null) 'hostname': hostname!,
      if (id != null) 'id': id!,
      if (instanceEncryptionKey != null)
        'instanceEncryptionKey': instanceEncryptionKey!,
      if (keyRevocationActionType != null)
        'keyRevocationActionType': keyRevocationActionType!,
      if (kind != null) 'kind': kind!,
      if (labelFingerprint != null) 'labelFingerprint': labelFingerprint!,
      if (labels != null) 'labels': labels!,
      if (lastStartTimestamp != null)
        'lastStartTimestamp': lastStartTimestamp!,
      if (lastStopTimestamp != null) 'lastStopTimestamp': lastStopTimestamp!,
      if (lastSuspendedTimestamp != null)
        'lastSuspendedTimestamp': lastSuspendedTimestamp!,
      if (machineType != null) 'machineType': machineType!,
      if (metadata != null) 'metadata': metadata!,
      if (minCpuPlatform != null) 'minCpuPlatform': minCpuPlatform!,
      if (name != null) 'name': name!,
      if (networkInterfaces != null) 'networkInterfaces': networkInterfaces!,
      if (networkPerformanceConfig != null)
        'networkPerformanceConfig': networkPerformanceConfig!,
      if (params != null) 'params': params!,
      if (privateIpv6GoogleAccess != null)
        'privateIpv6GoogleAccess': privateIpv6GoogleAccess!,
      if (reservationAffinity != null)
        'reservationAffinity': reservationAffinity!,
      if (resourcePolicies != null) 'resourcePolicies': resourcePolicies!,
      if (resourceStatus != null) 'resourceStatus': resourceStatus!,
      if (satisfiesPzi != null) 'satisfiesPzi': satisfiesPzi!,
      if (satisfiesPzs != null) 'satisfiesPzs': satisfiesPzs!,
      if (scheduling != null) 'scheduling': scheduling!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (serviceAccounts != null) 'serviceAccounts': serviceAccounts!,
      if (shieldedInstanceConfig != null)
        'shieldedInstanceConfig': shieldedInstanceConfig!,
      if (shieldedInstanceIntegrityPolicy != null)
        'shieldedInstanceIntegrityPolicy': shieldedInstanceIntegrityPolicy!,
      if (sourceMachineImage != null)
        'sourceMachineImage': sourceMachineImage!,
      if (sourceMachineImageEncryptionKey != null)
        'sourceMachineImageEncryptionKey': sourceMachineImageEncryptionKey!,
      if (startRestricted != null) 'startRestricted': startRestricted!,
      if (status != null) 'status': status!,
      if (statusMessage != null) 'statusMessage': statusMessage!,
      if (tags != null) 'tags': tags!,
      if (zone != null) 'zone': zone!,
    };