ConfigManagementMembershipState.fromJson constructor

ConfigManagementMembershipState.fromJson(
  1. Map json_
)

Implementation

ConfigManagementMembershipState.fromJson(core.Map json_)
    : this(
        clusterName: json_.containsKey('clusterName')
            ? json_['clusterName'] as core.String
            : null,
        configSyncState: json_.containsKey('configSyncState')
            ? ConfigManagementConfigSyncState.fromJson(
                json_['configSyncState']
                    as core.Map<core.String, core.dynamic>)
            : null,
        hierarchyControllerState:
            json_.containsKey('hierarchyControllerState')
                ? ConfigManagementHierarchyControllerState.fromJson(
                    json_['hierarchyControllerState']
                        as core.Map<core.String, core.dynamic>)
                : null,
        membershipSpec: json_.containsKey('membershipSpec')
            ? ConfigManagementMembershipSpec.fromJson(json_['membershipSpec']
                as core.Map<core.String, core.dynamic>)
            : null,
        operatorState: json_.containsKey('operatorState')
            ? ConfigManagementOperatorState.fromJson(
                json_['operatorState'] as core.Map<core.String, core.dynamic>)
            : null,
        policyControllerState: json_.containsKey('policyControllerState')
            ? ConfigManagementPolicyControllerState.fromJson(
                json_['policyControllerState']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );