RestoreConfig.fromJson constructor

RestoreConfig.fromJson(
  1. Map json_
)

Implementation

RestoreConfig.fromJson(core.Map json_)
    : this(
        allNamespaces: json_.containsKey('allNamespaces')
            ? json_['allNamespaces'] as core.bool
            : null,
        clusterResourceConflictPolicy:
            json_.containsKey('clusterResourceConflictPolicy')
                ? json_['clusterResourceConflictPolicy'] as core.String
                : null,
        clusterResourceRestoreScope:
            json_.containsKey('clusterResourceRestoreScope')
                ? ClusterResourceRestoreScope.fromJson(
                    json_['clusterResourceRestoreScope']
                        as core.Map<core.String, core.dynamic>)
                : null,
        excludedNamespaces: json_.containsKey('excludedNamespaces')
            ? Namespaces.fromJson(json_['excludedNamespaces']
                as core.Map<core.String, core.dynamic>)
            : null,
        namespacedResourceRestoreMode:
            json_.containsKey('namespacedResourceRestoreMode')
                ? json_['namespacedResourceRestoreMode'] as core.String
                : null,
        noNamespaces: json_.containsKey('noNamespaces')
            ? json_['noNamespaces'] as core.bool
            : null,
        restoreOrder: json_.containsKey('restoreOrder')
            ? RestoreOrder.fromJson(
                json_['restoreOrder'] as core.Map<core.String, core.dynamic>)
            : null,
        selectedApplications: json_.containsKey('selectedApplications')
            ? NamespacedNames.fromJson(json_['selectedApplications']
                as core.Map<core.String, core.dynamic>)
            : null,
        selectedNamespaces: json_.containsKey('selectedNamespaces')
            ? Namespaces.fromJson(json_['selectedNamespaces']
                as core.Map<core.String, core.dynamic>)
            : null,
        substitutionRules: json_.containsKey('substitutionRules')
            ? (json_['substitutionRules'] as core.List)
                .map((value) => SubstitutionRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        transformationRules: json_.containsKey('transformationRules')
            ? (json_['transformationRules'] as core.List)
                .map((value) => TransformationRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        volumeDataRestorePolicy: json_.containsKey('volumeDataRestorePolicy')
            ? json_['volumeDataRestorePolicy'] as core.String
            : null,
        volumeDataRestorePolicyBindings:
            json_.containsKey('volumeDataRestorePolicyBindings')
                ? (json_['volumeDataRestorePolicyBindings'] as core.List)
                    .map((value) => VolumeDataRestorePolicyBinding.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
      );