TrafficTarget.fromJson constructor

TrafficTarget.fromJson(
  1. Map json_
)

Implementation

TrafficTarget.fromJson(core.Map json_)
    : this(
        configurationName: json_.containsKey('configurationName')
            ? json_['configurationName'] as core.String
            : null,
        latestRevision: json_.containsKey('latestRevision')
            ? json_['latestRevision'] as core.bool
            : null,
        percent: json_.containsKey('percent')
            ? json_['percent'] as core.int
            : null,
        revisionName: json_.containsKey('revisionName')
            ? json_['revisionName'] as core.String
            : null,
        tag: json_.containsKey('tag') ? json_['tag'] as core.String : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );