toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (clusterName != null) 'clusterName': clusterName!,
      if (configSyncState != null) 'configSyncState': configSyncState!,
      if (hierarchyControllerState != null)
        'hierarchyControllerState': hierarchyControllerState!,
      if (membershipSpec != null) 'membershipSpec': membershipSpec!,
      if (operatorState != null) 'operatorState': operatorState!,
      if (policyControllerState != null)
        'policyControllerState': policyControllerState!,
    };