PodResult.fromJson constructor

PodResult.fromJson(
  1. Map json_
)

Implementation

PodResult.fromJson(core.Map json_)
    : this(
        imageResults: json_.containsKey('imageResults')
            ? (json_['imageResults'] as core.List)
                .map((value) => ImageResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kubernetesNamespace: json_.containsKey('kubernetesNamespace')
            ? json_['kubernetesNamespace'] as core.String
            : null,
        kubernetesServiceAccount:
            json_.containsKey('kubernetesServiceAccount')
                ? json_['kubernetesServiceAccount'] as core.String
                : null,
        podName: json_.containsKey('podName')
            ? json_['podName'] as core.String
            : null,
        verdict: json_.containsKey('verdict')
            ? json_['verdict'] as core.String
            : null,
      );