toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attached != null) 'attached': attached!,
      if (autoGrownSizeGib != null) 'autoGrownSizeGib': autoGrownSizeGib!,
      if (bootVolume != null) 'bootVolume': bootVolume!,
      if (currentSizeGib != null) 'currentSizeGib': currentSizeGib!,
      if (emergencySizeGib != null) 'emergencySizeGib': emergencySizeGib!,
      if (expireTime != null) 'expireTime': expireTime!,
      if (id != null) 'id': id!,
      if (instances != null) 'instances': instances!,
      if (labels != null) 'labels': labels!,
      if (maxSizeGib != null) 'maxSizeGib': maxSizeGib!,
      if (name != null) 'name': name!,
      if (notes != null) 'notes': notes!,
      if (originallyRequestedSizeGib != null)
        'originallyRequestedSizeGib': originallyRequestedSizeGib!,
      if (performanceTier != null) 'performanceTier': performanceTier!,
      if (pod != null) 'pod': pod!,
      if (protocol != null) 'protocol': protocol!,
      if (remainingSpaceGib != null) 'remainingSpaceGib': remainingSpaceGib!,
      if (requestedSizeGib != null) 'requestedSizeGib': requestedSizeGib!,
      if (snapshotAutoDeleteBehavior != null)
        'snapshotAutoDeleteBehavior': snapshotAutoDeleteBehavior!,
      if (snapshotEnabled != null) 'snapshotEnabled': snapshotEnabled!,
      if (snapshotReservationDetail != null)
        'snapshotReservationDetail': snapshotReservationDetail!,
      if (state != null) 'state': state!,
      if (storageType != null) 'storageType': storageType!,
      if (workloadProfile != null) 'workloadProfile': workloadProfile!,
    };