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