ScalarMap class

Maps a GraphQL scalar to a Dart type.

Annotations
  • @JsonSerializable.new(fieldRename: FieldRename.snake)

Constructors

ScalarMap({String? graphQLType, DartType? dartType, String? customParserImport})
Instatiates a scalar mapping.
ScalarMap.fromJson(Map<String, dynamic> json)
Build a scalar mapping from a JSON map.
factory

Properties

customParserImport → String?
If custom parser would be used.
final
dartType → DartType?
The Dart type linked to this GraphQL type.
final
graphQLType → String?
The GraphQL type name.
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
toJson() → Map<String, dynamic>
Convert this scalar mapping instance to JSON.
toString() → String
A string representation of this object.
inherited

Operators

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