encode method

Implementation

int encode(QuestionSubQuestionVisibility data) => data.value;