Kubernetes.fromJson constructor

Kubernetes.fromJson(
  1. Map json_
)

Implementation

Kubernetes.fromJson(core.Map json_)
    : this(
        accessReviews: json_.containsKey('accessReviews')
            ? (json_['accessReviews'] as core.List)
                .map((value) => AccessReview.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        bindings: json_.containsKey('bindings')
            ? (json_['bindings'] as core.List)
                .map((value) => GoogleCloudSecuritycenterV1Binding.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nodePools: json_.containsKey('nodePools')
            ? (json_['nodePools'] as core.List)
                .map((value) => NodePool.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nodes: json_.containsKey('nodes')
            ? (json_['nodes'] as core.List)
                .map((value) => Node.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        objects: json_.containsKey('objects')
            ? (json_['objects'] as core.List)
                .map((value) => Object.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pods: json_.containsKey('pods')
            ? (json_['pods'] as core.List)
                .map((value) => Pod.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        roles: json_.containsKey('roles')
            ? (json_['roles'] as core.List)
                .map((value) => Role.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );