PatchDeployment.fromJson constructor

PatchDeployment.fromJson(
  1. Map json_
)

Implementation

PatchDeployment.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        instanceFilter: json_.containsKey('instanceFilter')
            ? PatchInstanceFilter.fromJson(json_['instanceFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        lastExecuteTime: json_.containsKey('lastExecuteTime')
            ? json_['lastExecuteTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        oneTimeSchedule: json_.containsKey('oneTimeSchedule')
            ? OneTimeSchedule.fromJson(json_['oneTimeSchedule']
                as core.Map<core.String, core.dynamic>)
            : null,
        patchConfig: json_.containsKey('patchConfig')
            ? PatchConfig.fromJson(
                json_['patchConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        recurringSchedule: json_.containsKey('recurringSchedule')
            ? RecurringSchedule.fromJson(json_['recurringSchedule']
                as core.Map<core.String, core.dynamic>)
            : null,
        rollout: json_.containsKey('rollout')
            ? PatchRollout.fromJson(
                json_['rollout'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );