toJSON method

String toJSON()

Implementation

String toJSON() {
  final Map<String, Object?> data = {
    IS_ELIGIBLE: isEligible,
    EXISTS: exists,
    VARIABLES: variables,
    ORIGINAL: original
  };
  return jsonEncode(data);
}