compatibility static method

ChartSwitchCompatibility compatibility(
  1. Map<String, dynamic> json,
  2. ChartType targetType, {
  3. bool registeredOnly = true,
})

Returns a non-throwing explanation for whether targetType can consume this payload directly or via a supported force conversion.

Implementation

static registry.ChartSwitchCompatibility compatibility(
  Map<String, dynamic> json,
  ChartType targetType, {
  bool registeredOnly = true,
}) => registry.chartSwitchCompatibilityForJson(
  json,
  targetType: targetType,
  registeredOnly: registeredOnly,
);