GraphQLType class

Represents a GraphQL type.

Annotations

Constructors

GraphQLType({GraphQLTypeKind kind, String name, String description, List<GraphQLField> fields, List<GraphQLType> interfaces, List<GraphQLType> possibleTypes, List<GraphQLEnumValue> enumValues, List<GraphQLInputValue> inputFields, GraphQLType ofType})
Instantiates a GraphQL type.
GraphQLType.fromJson(Map<String, dynamic> json)
Build a GraphQL type from a JSON map.
factory

Properties

description → String
Type description.
final
enumValues → List<GraphQLEnumValue>
Possible enum values.
final
fields → List<GraphQLField>
Type fields.
final
inputFields → List<GraphQLInputValue>
Input fields.
final
interfaces → List<GraphQLType>
Type interfaces.
final
kind GraphQLTypeKind
Type kind.
final
name → String
Type name.
final
ofType GraphQLType
Chain of types this follows.
final
possibleTypes → List<GraphQLType>
Possible super type.
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, dynamic>
Convert this GraphQL type instance to JSON.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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