isCompatible static method
True when targetType can consume the payload's inferred shape directly.
Implementation
static bool isCompatible(
Map<String, dynamic> json,
ChartType targetType, {
bool registeredOnly = true,
}) => compatibleTypes(
json,
registeredOnly: registeredOnly,
).contains(targetType);