Answer.fromJson constructor
Answer.fromJson(
- 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'],
);
}