SchemaField class
Schema field.
- Annotations
-
- @JsonSerializable(createFactory: true, createToJson: true, explicitToJson: true)
Constructors
-
SchemaField({required String name, bool? isNullable, required SchemaType outputType, required List<
SchemaArg> args, Deprecation? deprecation, String? documentation}) -
Create a new schema field.
const
-
SchemaField.fromJson(Map<
String, dynamic> json) -
Schema field from JSON factory constructor.
factory
Properties
-
args
→ List<
SchemaArg> -
Field args.
final
- deprecation → Deprecation?
-
Deprecation info.
final
- documentation → String?
-
Documentation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNullable → bool?
-
Field is nullable.
final
- name → String
-
Field name.
final
- outputType → SchemaType
-
Field output 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 field as JSON map.
-
toString(
) → String -
Schema field as JSON string.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited