INFRA: Set Up Project.
This commit is contained in:
42
lib/models/tax_model.dart
Normal file
42
lib/models/tax_model.dart
Normal file
@@ -0,0 +1,42 @@
|
||||
class TaxModel {
|
||||
String? country;
|
||||
bool? enable;
|
||||
String? tax;
|
||||
String? id;
|
||||
String? type;
|
||||
String? title;
|
||||
String? sectionId;
|
||||
|
||||
|
||||
|
||||
TaxModel({this.country, this.enable, this.tax, this.id, this.type, this.title,this.sectionId,});
|
||||
|
||||
TaxModel.fromJson(Map<String, dynamic> json) {
|
||||
|
||||
|
||||
|
||||
|
||||
country = json['country'];
|
||||
enable = json['enable'];
|
||||
tax = json['tax'];
|
||||
id = json['id'];
|
||||
type = json['type'];
|
||||
title = json['title'];
|
||||
sectionId = json['sectionId'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['country'] = country;
|
||||
data['enable'] = enable;
|
||||
data['tax'] = tax;
|
||||
data['id'] = id;
|
||||
data['type'] = type;
|
||||
data['title'] = title;
|
||||
data['sectionId'] = sectionId;
|
||||
|
||||
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user