isCompatible static method

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

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);