Canary.fromJson constructor

Canary.fromJson(
  1. Map json_
)

Implementation

Canary.fromJson(core.Map json_)
    : this(
        canaryDeployment: json_.containsKey('canaryDeployment')
            ? CanaryDeployment.fromJson(json_['canaryDeployment']
                as core.Map<core.String, core.dynamic>)
            : null,
        customCanaryDeployment: json_.containsKey('customCanaryDeployment')
            ? CustomCanaryDeployment.fromJson(json_['customCanaryDeployment']
                as core.Map<core.String, core.dynamic>)
            : null,
        runtimeConfig: json_.containsKey('runtimeConfig')
            ? RuntimeConfig.fromJson(
                json_['runtimeConfig'] as core.Map<core.String, core.dynamic>)
            : null,
      );