static bool isPrimitiveType(Type type) { return type == String || type == int || type == double || type == num || type == bool || type == Null; }