toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (acceleratorConfig != null) 'acceleratorConfig': acceleratorConfig!,
      if (bootDiskSizeGb != null) 'bootDiskSizeGb': bootDiskSizeGb!,
      if (bootDiskType != null) 'bootDiskType': bootDiskType!,
      if (canIpForward != null) 'canIpForward': canIpForward!,
      if (containerImage != null) 'containerImage': containerImage!,
      if (createTime != null) 'createTime': createTime!,
      if (creator != null) 'creator': creator!,
      if (customGpuDriverPath != null)
        'customGpuDriverPath': customGpuDriverPath!,
      if (dataDiskSizeGb != null) 'dataDiskSizeGb': dataDiskSizeGb!,
      if (dataDiskType != null) 'dataDiskType': dataDiskType!,
      if (diskEncryption != null) 'diskEncryption': diskEncryption!,
      if (disks != null) 'disks': disks!,
      if (installGpuDriver != null) 'installGpuDriver': installGpuDriver!,
      if (instanceMigrationEligibility != null)
        'instanceMigrationEligibility': instanceMigrationEligibility!,
      if (instanceOwners != null) 'instanceOwners': instanceOwners!,
      if (kmsKey != null) 'kmsKey': kmsKey!,
      if (labels != null) 'labels': labels!,
      if (machineType != null) 'machineType': machineType!,
      if (metadata != null) 'metadata': metadata!,
      if (migrated != null) 'migrated': migrated!,
      if (name != null) 'name': name!,
      if (network != null) 'network': network!,
      if (nicType != null) 'nicType': nicType!,
      if (noProxyAccess != null) 'noProxyAccess': noProxyAccess!,
      if (noPublicIp != null) 'noPublicIp': noPublicIp!,
      if (noRemoveDataDisk != null) 'noRemoveDataDisk': noRemoveDataDisk!,
      if (postStartupScript != null) 'postStartupScript': postStartupScript!,
      if (proxyUri != null) 'proxyUri': proxyUri!,
      if (reservationAffinity != null)
        'reservationAffinity': reservationAffinity!,
      if (serviceAccount != null) 'serviceAccount': serviceAccount!,
      if (serviceAccountScopes != null)
        'serviceAccountScopes': serviceAccountScopes!,
      if (shieldedInstanceConfig != null)
        'shieldedInstanceConfig': shieldedInstanceConfig!,
      if (state != null) 'state': state!,
      if (subnet != null) 'subnet': subnet!,
      if (tags != null) 'tags': tags!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (upgradeHistory != null) 'upgradeHistory': upgradeHistory!,
      if (vmImage != null) 'vmImage': vmImage!,
    };