toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accelerators != null) 'accelerators': accelerators!,
      if (bootDiskSizeGb != null) 'bootDiskSizeGb': bootDiskSizeGb!,
      if (confidentialInstanceConfig != null)
        'confidentialInstanceConfig': confidentialInstanceConfig!,
      if (disablePublicIpAddresses != null)
        'disablePublicIpAddresses': disablePublicIpAddresses!,
      if (disableSsh != null) 'disableSsh': disableSsh!,
      if (enableNestedVirtualization != null)
        'enableNestedVirtualization': enableNestedVirtualization!,
      if (machineType != null) 'machineType': machineType!,
      if (poolSize != null) 'poolSize': poolSize!,
      if (pooledInstances != null) 'pooledInstances': pooledInstances!,
      if (serviceAccount != null) 'serviceAccount': serviceAccount!,
      if (serviceAccountScopes != null)
        'serviceAccountScopes': serviceAccountScopes!,
      if (shieldedInstanceConfig != null)
        'shieldedInstanceConfig': shieldedInstanceConfig!,
      if (tags != null) 'tags': tags!,
    };