GraphQLDirective class

Represents a GraphQL directive.

Annotations

Constructors

GraphQLDirective({String name, String description, List<GraphQLDirectiveLocation> locations, List<GraphQLInputValue> args})
Instantiates a GraphQL directive.
GraphQLDirective.fromJson(Map<String, dynamic> json)
Build a GraphQL directive from a JSON map.
factory

Properties

args ↔ List<GraphQLInputValue>
A list of arguments of this directive.
read / write
description → String
The directive description.
final
locations ↔ List<GraphQLDirectiveLocation>
A list of locations of this directive.
read / write
name → String
The directive name.
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 directive 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