ChoiceStruct.fromJson constructor

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

Implementation

factory ChoiceStruct.fromJson(Map<String, dynamic> json) {
  return ChoiceStruct(

    question: ChoiceQuestionStruct.fromJson(json['question']),
    answer: json['answer'],
    help: ChoiceHelpStruct.fromJson(json['help']),
    meta: Meta.fromJson(json['meta']),

  );
}