isGenericNode function Custom Resolvers

bool isGenericNode(
  1. ParsedProperty? property
)

Whether the node with the property should be parsed as a generic !!map or !!seq or !!str.

Implementation

bool isGenericNode(ParsedProperty? property) {
  if (property == null) return false;
  final kind = property.kind;

  return kind.isGeneric ||
      (property is NodeProperty && property.tag != null && !kind.isKnown);
}