add new fields to objects
This commit is contained in:
@@ -12,6 +12,9 @@ class Business {
|
|||||||
final String gps_location;
|
final String gps_location;
|
||||||
final String practice_no;
|
final String practice_no;
|
||||||
final String vat_no;
|
final String vat_no;
|
||||||
|
final String website;
|
||||||
|
final String rating;
|
||||||
|
final String mission_vision;
|
||||||
|
|
||||||
const Business(
|
const Business(
|
||||||
this.business_id,
|
this.business_id,
|
||||||
@@ -26,6 +29,9 @@ class Business {
|
|||||||
this.gps_location,
|
this.gps_location,
|
||||||
this.practice_no,
|
this.practice_no,
|
||||||
this.vat_no,
|
this.vat_no,
|
||||||
|
this.website,
|
||||||
|
this.rating,
|
||||||
|
this.mission_vision,
|
||||||
);
|
);
|
||||||
|
|
||||||
factory Business.fromJson(dynamic json) {
|
factory Business.fromJson(dynamic json) {
|
||||||
@@ -42,6 +48,9 @@ class Business {
|
|||||||
json['gps_location'],
|
json['gps_location'],
|
||||||
json['practice_no'],
|
json['practice_no'],
|
||||||
json['vat_no'],
|
json['vat_no'],
|
||||||
|
json['website'],
|
||||||
|
json['rating'],
|
||||||
|
json['mission_vision'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user