PhaseConfig.fromJson constructor

PhaseConfig.fromJson(
  1. Map json_
)

Implementation

PhaseConfig.fromJson(core.Map json_)
    : this(
        percentage: json_.containsKey('percentage')
            ? json_['percentage'] as core.int
            : null,
        phaseId: json_.containsKey('phaseId')
            ? json_['phaseId'] as core.String
            : 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,
        profiles: json_.containsKey('profiles')
            ? (json_['profiles'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        verify:
            json_.containsKey('verify') ? json_['verify'] as core.bool : null,
      );