ChoiceQuestionStruct.fromJson constructor

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

Implementation

factory ChoiceQuestionStruct.fromJson(Map<String, dynamic> json) {
  return ChoiceQuestionStruct(
      option: (json['option'] != null ? (json['option'] as List).map((i) => Option.fromJson(i)).toList() : null)!,
      title: json['title']);
}