isSerializable property

bool get isSerializable

Not all Types are parseable. For consistency, one catchall before smaller checks

Implementation

bool get isSerializable {
  if (isIterable) {
    final argTypeChecker = SharedChecker<_SiblingModel>(argType);

    return argTypeChecker.isSibling ||
        argTypeChecker.isDartCoreType ||
        argTypeChecker.isEnum ||
        (argTypeChecker.isFuture && argTypeChecker.canSerializeArgType);
  }

  return isDartCoreType || isEnum || isMap || isSibling || (isFuture && canSerializeArgType);
}