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 (deletionProtection != null) 'deletionProtection': deletionProtection!,
  if (description != null) 'description': description!,
  if (disks != null) 'disks': disks!,
  if (displayDevice != null) 'displayDevice': displayDevice!,
  if (guestAccelerators != null) 'guestAccelerators': guestAccelerators!,
  if (hostname != null) 'hostname': hostname!,
  if (instanceEncryptionKey != null)
    'instanceEncryptionKey': instanceEncryptionKey!,
  if (keyRevocationActionType != null)
    'keyRevocationActionType': keyRevocationActionType!,
  if (labels != null) 'labels': labels!,
  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 (scheduling != null) 'scheduling': scheduling!,
  if (serviceAccounts != null) 'serviceAccounts': serviceAccounts!,
  if (tags != null) 'tags': tags!,
};