CanaryDeployment.fromJson constructor

CanaryDeployment.fromJson(
  1. Map json_
)

Implementation

CanaryDeployment.fromJson(core.Map json_)
    : this(
        percentages: json_.containsKey('percentages')
            ? (json_['percentages'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        postdeploy: json_.containsKey('postdeploy')
            ? Postdeploy.fromJson(
                json_['postdeploy'] as core.Map<core.String, core.dynamic>)
            : null,
        predeploy: json_.containsKey('predeploy')
            ? Predeploy.fromJson(
                json_['predeploy'] as core.Map<core.String, core.dynamic>)
            : null,
        verify:
            json_.containsKey('verify') ? json_['verify'] as core.bool : null,
      );