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