RubricBasedInstructionFollowingInput.fromJson constructor

RubricBasedInstructionFollowingInput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RubricBasedInstructionFollowingInput.fromJson(
  Map<String, dynamic> json,
) {
  return RubricBasedInstructionFollowingInput(
    metricSpec: decode(
      json['metricSpec'],
      RubricBasedInstructionFollowingSpec.fromJson,
    ),
    instance: decode(
      json['instance'],
      RubricBasedInstructionFollowingInstance.fromJson,
    ),
  );
}