ItemView class

Constructors

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

Properties

createdAt ↔ String?
CreatedAt is when the example was first written.
getter/setter pair
datasetName ↔ String?
Dataset is the set this example belongs to.
getter/setter pair
expectedOutput ↔ Object?
Expected is the answer a correct model produces, which the judge grades against.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the example's handle, unique within the caller's org.
getter/setter pair
input ↔ Object?
Input is what the model under test is given, as it was written.
getter/setter pair
metadata ↔ Map<String, Object>
Metadata is the 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 or ARCHIVED. Only ACTIVE examples are fed to a run, which is how one is retired without being deleted.
getter/setter pair
updatedAt ↔ String?
UpdatedAt is when it last changed.
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) → ItemView?
Returns a new ItemView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ItemView>
mapFromJson(dynamic json) → Map<String, ItemView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ItemView>>

Constants

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