Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
faq_model.dart
Go to the documentation of this file.
1import '../../domain/entities/faq_entity.dart';
2
3class FAQModel extends FAQEntity {
4 const FAQModel({
5 super.active,
6 super.answer,
7 super.id,
8 super.name,
9 });
10
11 // From JSON
12 factory FAQModel.fromJson(Map<String, dynamic> json) {
13 return FAQModel(
14 active: json['active'],
15 answer: json['answer'],
16 id: json['id'],
17 name: json['name'],
18 );
19 }
20
21 // To JSON
22 Map<String, dynamic> toJson() {
23 return {
24 'active': active,
25 'answer': answer,
26 'id': id,
27 'name': name,
28 };
29 }
30}
Map< String, dynamic > toJson()
final bool active
final int id
final String name
final String answer
const FAQEntity({ this.active, this.answer, this.id, this.name, })
const FAQModel({ super.active, super.answer, super.id, super.name, })