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({String? defaultDeleteOperation, String? defaultQueryOperation, String? defaultQueryFilteredOperation, String? defaultSubscriptionOperation, String? defaultSubscriptionFilteredOperation, String? defaultUpsertOperation, FieldRename? fieldRename})
Creates a new GraphqlSerializable instance.
const

Properties

defaultDeleteOperation String?
The mutation used to remove data. Only the header of the operation is required. For example
final
defaultQueryFilteredOperation String?
The query used to fetch a member or specific members. Only the header of the operation is required. For example
final
defaultQueryOperation String?
The query used to fetch multiple members. Only the header of the operation is required. For example
final
defaultSubscriptionFilteredOperation String?
The query used to fetch a member or specific members. Only the header of the operation is required. For example
final
defaultSubscriptionOperation String?
The subscription used to listen to all models Only the header of the operation is required. For example
final
defaultUpsertOperation String?
The mutation used to create or update a member. Only the header of the operation is required. For example
final
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
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.