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
22 lines
538 B
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) {
|
|
// BytedeskUtils.printLog('aid:' + json['aid']);
|
|
// BytedeskUtils.printLog('question:' + json['question']);
|
|
return Answer(
|
|
aid: json['aid'], question: json['question'], answer: json['answer']);
|
|
}
|
|
|
|
//
|
|
@override
|
|
List<Object> get props => [aid!];
|
|
}
|