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