TRProfileAnswer.fromJson constructor

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

Implementation

factory TRProfileAnswer.fromJson(Map<String, dynamic> json) => TRProfileAnswer(
      questionId: json['question_id'] as int?,
      actualUserAnswer: (json['values'] as List<dynamic>?)
          ?.map((e) => e.toString())
          .toList(),
    );