You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
538 B

3 years ago
import 'package:equatable/equatable.dart';
class Answer extends Equatable {
//
final String? aid;
final String? question;
final String? answer;
//
Answer({this.aid, this.question, this.answer}) : super();
//
static Answer fromJson(dynamic json) {
3 years ago
// BytedeskUtils.printLog('aid:' + json['aid']);
// BytedeskUtils.printLog('question:' + json['question']);
3 years ago
return Answer(
aid: json['aid'], question: json['question'], answer: json['answer']);
}
//
@override
List<Object> get props => [aid!];
}