SurveyAnswer.fromMap constructor

SurveyAnswer.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SurveyAnswer.fromMap(Map<String, dynamic> map) {
  // The survey delegate emits camelCase `questionId` (matching
  // the native forwarder). Read/write camelCase so this public model stays
  // consistent with the runtime shape.
  return SurveyAnswer(
    questionId: map['questionId'] as String? ?? '',
    answer: map['answer'],
  );
}