Checks if a type is a primitive type
bool isPrimitiveType(Type type) => type == int || type == double || type == String || type == bool || type == num;