GraphqlAdapter<_Model extends Model> class
abstract
Constructors that convert app models to and from REST
Constructors
Properties
-
fieldsToGraphqlRuntimeDefinition
→ Map<
String, RuntimeGraphqlDefinition> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- queryOperationTransformer → GraphqlQueryOperationTransformer Function(Query?, GraphqlModel?)?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromGraphql(
Map< String, dynamic> input, {required GraphqlProvider provider, ModelRepository<GraphqlModel> ? repository}) → Future<_Model> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toGraphql(
_Model input, {required GraphqlProvider provider, ModelRepository< GraphqlModel> ? repository}) → Future<Map< String, dynamic> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
enumValueFromName<
T> (Iterable< T> enumValues, String enumName) → T? -
Returns an enum value based on its string name. For example, given
'POST'
, and the enumenum Methods { GET, POST, DELETE }
,Methods.POST
is returned. -
firstWhereOrNull<
T> (Iterable< T> values, bool test(T item)) → T? -
After Dart 2.12,
firstWhere
can be a non-nullable return value. Instead of an extension, a predictable static method is used instead.