ResultField class

Constructors

ResultField(String name, String type, {bool optional = false, ResultShape? shape, String? doc})
const

Properties

doc → String?
The first line of the field's dartdoc. What the field means, which the type cannot say.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The key as it appears in JSON — the @JsonKey(name:) when there is one, so this describes what is actually sent rather than what the Dart field happens to be called.
final
optional → bool
Nullable, and therefore absent from a response that has nothing to say.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → ResultShape?
The nested shape, when this field's type is another result class.
final
type → String
As written: String, int, List<CatalogEntrySummary>.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → ResultField