toJson method

Map<String, dynamic> toJson()

Converts the evaluation result to a JSON-compatible map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'value': value,
    'reason': reason,
    'variant': variant,
  };
}