Answer.fromJson constructor

Answer.fromJson(
  1. Map json
)

Implementation

factory Answer.fromJson(Map json) {
  return Answer(
    text: json['text'],
    type: AnswerType.tryParse(json['type']),
    imgUrl: json['imgUrl'],
    imgDesc: json['imgDesc'],
    url: json['url'],
    urlDesc: json['urlDesc'],
    emotion: json['emotion'],
  );
}