toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (backup != null) 'backup': backup!,
      if (cluster != null) 'cluster': cluster!,
      if (completeTime != null) 'completeTime': completeTime!,
      if (createTime != null) 'createTime': createTime!,
      if (description != null) 'description': description!,
      if (etag != null) 'etag': etag!,
      if (filter != null) 'filter': filter!,
      if (labels != null) 'labels': labels!,
      if (name != null) 'name': name!,
      if (resourcesExcludedCount != null)
        'resourcesExcludedCount': resourcesExcludedCount!,
      if (resourcesFailedCount != null)
        'resourcesFailedCount': resourcesFailedCount!,
      if (resourcesRestoredCount != null)
        'resourcesRestoredCount': resourcesRestoredCount!,
      if (restoreConfig != null) 'restoreConfig': restoreConfig!,
      if (state != null) 'state': state!,
      if (stateReason != null) 'stateReason': stateReason!,
      if (uid != null) 'uid': uid!,
      if (updateTime != null) 'updateTime': updateTime!,
      if (volumeDataRestorePolicyOverrides != null)
        'volumeDataRestorePolicyOverrides': volumeDataRestorePolicyOverrides!,
      if (volumesRestoredCount != null)
        'volumesRestoredCount': volumesRestoredCount!,
    };