hasSerializer method
If this class possesses a serializing method such as toSqlite
Implementation
@protected
bool hasSerializer(DartType type) {
final classElement = type.element as ClassElement;
return classElement.getMethod(serializeMethod) != null;
}