GraphQLEnumValue class

Represents a GraphQL enum.

Annotations

Constructors

GraphQLEnumValue({String name, String description, bool isDeprecated, String deprecatedReason})
Instantiates a GraphQL enum value.
GraphQLEnumValue.fromJson(Map<String, dynamic> json)
Build a GraphQL enum value from a JSON map.
factory

Properties

deprecatedReason String
Why this enum is deprecated.
final
description String
Enum description.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isDeprecated bool
If this enum is deprecated.
final
name String
Enum name.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited