geo-smart-app/lib/model/unique_id_model.dart

21 lines
365 B
Dart
Raw Permalink Normal View History

2019-12-16 00:18:09 +00:00
class UniqueIDModel {
2019-10-31 15:51:22 +00:00
String id;
2019-12-16 00:18:09 +00:00
bool error = false;
2019-10-31 15:51:22 +00:00
2019-12-16 00:18:09 +00:00
UniqueIDModel({this.id});
2019-10-31 15:51:22 +00:00
2019-12-16 00:18:09 +00:00
UniqueIDModel.fromJson(Map<String, dynamic> json) {
2019-10-31 15:51:22 +00:00
id = json['id'];
}
2019-12-16 00:18:09 +00:00
UniqueIDModel.error() {
error = true;
}
2019-10-31 15:51:22 +00:00
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
return data;
}
}