ReviewPolicy class

HIT Review Policy data structures represent HIT review policies, which you specify when you create a HIT.

Annotations
  • @JsonSerializable(includeIfNull: false, explicitToJson: true, createFactory: true, createToJson: true)

Constructors

ReviewPolicy({@required String policyName, List<PolicyParameter> parameters})
ReviewPolicy.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
parameters List<PolicyParameter>
Name of the parameter from the Review policy.
@JsonKey(name: 'Parameters'), final
policyName String
Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01
@JsonKey(name: 'PolicyName'), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited