VolumeRestore.fromJson constructor

VolumeRestore.fromJson(
  1. Map json_
)

Implementation

VolumeRestore.fromJson(core.Map json_)
    : this(
        completeTime: json_.containsKey('completeTime')
            ? json_['completeTime'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateMessage: json_.containsKey('stateMessage')
            ? json_['stateMessage'] as core.String
            : null,
        targetPvc: json_.containsKey('targetPvc')
            ? NamespacedName.fromJson(
                json_['targetPvc'] as core.Map<core.String, core.dynamic>)
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        volumeBackup: json_.containsKey('volumeBackup')
            ? json_['volumeBackup'] as core.String
            : null,
        volumeHandle: json_.containsKey('volumeHandle')
            ? json_['volumeHandle'] as core.String
            : null,
        volumeType: json_.containsKey('volumeType')
            ? json_['volumeType'] as core.String
            : null,
      );