Schema class
Schema Document.
- Annotations
-
- @JsonSerializable(createFactory: true, createToJson: true, explicitToJson: true)
Constructors
- Schema({String? rootQueryType, String? rootMutationType, required InputObjectTypes inputObjectTypes, required OutputObjectTypes outputObjectTypes, required EnumTypes enumTypes})
-
Create a new schema.
const
-
Schema.fromJson(Map<
String, dynamic> json) -
Schema from JSON factory constructor.
factory
Properties
- enumTypes → EnumTypes
-
Enum types.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputObjectTypes → InputObjectTypes
-
Input object types.
final
- outputObjectTypes → OutputObjectTypes
-
Output object types.
final
- rootMutationType → String?
-
Root mutation type.
final
- rootQueryType → String?
-
Root query type.
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
-
toJson(
) → Map< String, dynamic> - Schema as JSON map.
-
toString(
) → String -
Schema as JSON string.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited