PolicyControllerPolicyContentState.fromJson constructor

PolicyControllerPolicyContentState.fromJson(
  1. Map json_
)

Implementation

PolicyControllerPolicyContentState.fromJson(core.Map json_)
    : this(
        bundleStates: json_.containsKey('bundleStates')
            ? (json_['bundleStates'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  PolicyControllerOnClusterState.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        referentialSyncConfigState:
            json_.containsKey('referentialSyncConfigState')
                ? PolicyControllerOnClusterState.fromJson(
                    json_['referentialSyncConfigState']
                        as core.Map<core.String, core.dynamic>)
                : null,
        templateLibraryState: json_.containsKey('templateLibraryState')
            ? PolicyControllerOnClusterState.fromJson(
                json_['templateLibraryState']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );