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.
29 lines
629 B
29 lines
629 B
|
|
class BoreModel {
|
|
String bore_name = '';
|
|
String type_of_water='';
|
|
String description='';
|
|
String capacity='';
|
|
|
|
BoreModel();
|
|
|
|
factory BoreModel.fromJson(Map<String, dynamic> json){
|
|
BoreModel rtvm = new BoreModel();
|
|
|
|
rtvm.bore_name = json['boreName'] ?? '';
|
|
rtvm.type_of_water = json['typeofwater'] ?? '';
|
|
rtvm.description = json['description'] ?? '';
|
|
rtvm.capacity = json['capacity'] ?? '';
|
|
|
|
|
|
|
|
|
|
return rtvm;
|
|
}
|
|
Map<String, dynamic> toJson() => {
|
|
"boreName":this.bore_name,
|
|
"typeofwater": this.type_of_water ,
|
|
"description": this.description,
|
|
"capacity": this.capacity,
|
|
};
|
|
} |