GraphqlSerializable class

An annotation used to specify a class to generate code for.

Creates a serialize/deserialize function for JSON.

Heavily borrowed/inspired by JsonSerializable

Constructors

GraphqlSerializable({FieldRename? fieldRename, GraphqlQueryOperationTransformer queryOperationTransformer(Query?, GraphqlModel?)?})
Creates a new GraphqlSerializable instance.
const

Properties

fieldRename FieldRename
Defines the automatic naming strategy when converting class field names into JSON map keys.
final
hashCode int
The hash code for this object.
no setterinherited
queryOperationTransformer GraphqlQueryOperationTransformer Function(Query?, GraphqlModel?)?
The interface used to determine the document to send GraphQL. This class will be accessed for all provider and repository operations.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

defaults → const GraphqlSerializable
An instance of GraphqlSerializable with all fields set to their default values.