VendureUtils class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Static Methods
-
c<T>(Map<String, dynamic> jsonMap, T fromJson(Map<String, dynamic>))
→ T
-
-
cleanUpCustomFields(String queryTemplate, Map<String, List> customFieldsConfig)
→ String
-
-
generateFragmentWithTypename(String typeName, List customFields)
→ String
-
-
generateQueryWithCustomFields(String queryTemplate, Map<String, List> customFieldsConfig)
→ String
-
-
loadEnumTypeNames(Future<List<Map<String, dynamic>>> detectEnums(), {Future<List<Map<String, dynamic>>> detectFields()?})
→ Future<void>
-
Legacy method kept for compatibility but no-op or redirects to manual registration if needed.
The dynamic detection is removed to improve performance.
-
normalizeGraphQLData(dynamic data, {String? parentKey, bool? convertEnums})
→ dynamic
-
-
normalizeMutationData(dynamic data, {String? parentKey, bool? convertEnums})
→ dynamic
-
-
printLongString(String text)
→ void
-
-
Register custom enum types and their fields manually.
This replaces the slow introspection.
-
replaceCustomFieldsFragment(String queryTemplate, Map<String, List> customFieldsConfig)
→ String
-
-
sanitizeGraphQLQuery(String query, Map<String, List> customFieldsConfig)
→ String
-
-
setConvertEnums({bool? queryEnums, bool? mutationEnums})
→ void
-
Short helper to toggle global conversion flags.