GoogleCloudRunV2TrafficTarget.fromJson constructor

GoogleCloudRunV2TrafficTarget.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2TrafficTarget.fromJson(core.Map json_)
    : this(
        percent: json_.containsKey('percent')
            ? json_['percent'] as core.int
            : null,
        revision: json_.containsKey('revision')
            ? json_['revision'] as core.String
            : null,
        tag: json_.containsKey('tag') ? json_['tag'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );