KubernetesResource.fromJson constructor

KubernetesResource.fromJson(
  1. Map json_
)

Implementation

KubernetesResource.fromJson(core.Map json_)
    : this(
        connectResources: json_.containsKey('connectResources')
            ? (json_['connectResources'] as core.List)
                .map((value) => ResourceManifest.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        membershipCrManifest: json_.containsKey('membershipCrManifest')
            ? json_['membershipCrManifest'] as core.String
            : null,
        membershipResources: json_.containsKey('membershipResources')
            ? (json_['membershipResources'] as core.List)
                .map((value) => ResourceManifest.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resourceOptions: json_.containsKey('resourceOptions')
            ? ResourceOptions.fromJson(json_['resourceOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
      );