VendureUtils class

Constructors

VendureUtils()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMissingFields(Map<String, dynamic> jsonMap) → List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

convertMutationEnums ↔ bool
getter/setter pair
convertQueryEnums ↔ bool
getter/setter pair

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
registerCustomEnum(String typeName, List<String> fields, {List<String>? values}) → 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.