ClusterMetadata.fromJson constructor

ClusterMetadata.fromJson(
  1. Map json_
)

Implementation

ClusterMetadata.fromJson(core.Map json_)
    : this(
        anthosVersion: json_.containsKey('anthosVersion')
            ? json_['anthosVersion'] as core.String
            : null,
        backupCrdVersions: json_.containsKey('backupCrdVersions')
            ? (json_['backupCrdVersions']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        cluster: json_.containsKey('cluster')
            ? json_['cluster'] as core.String
            : null,
        gkeVersion: json_.containsKey('gkeVersion')
            ? json_['gkeVersion'] as core.String
            : null,
        k8sVersion: json_.containsKey('k8sVersion')
            ? json_['k8sVersion'] as core.String
            : null,
      );