ItemReq class

Constructors

ItemReq({Object? expectedOutput, String? id, Object? input, Map<String, Object> metadata = const {}, String? status})
Returns a new ItemReq instance.

Properties

expectedOutput ↔ Object?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID makes the write idempotent — re-posting the same id replaces that example in place. Omit it and one is generated. An id that already exists in a DIFFERENT dataset is 409 rather than a move.
getter/setter pair
input ↔ Object?
getter/setter pair
metadata ↔ Map<String, Object>
Metadata is a free-form object stored with the example.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is ACTIVE (the default) or ARCHIVED. Only ACTIVE examples are fed to a run, which is how an example is retired without being deleted.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → ItemReq?
Returns a new ItemReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ItemReq>
mapFromJson(dynamic json) → Map<String, ItemReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ItemReq>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.