compatibility static method
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,
);