repair add makanan page, addes socket io client for real time update data, added table status change page

This commit is contained in:
kicap
2023-08-25 04:22:48 +08:00
parent 24cc3d3bd7
commit b3781eb831
33 changed files with 1233 additions and 349 deletions

21
lib/model/my_model.dart Normal file
View File

@ -0,0 +1,21 @@
class MyModel {
String? message;
bool? theBool;
dynamic data;
MyModel({this.message, this.theBool, this.data});
MyModel.fromJson(Map<String, dynamic> json) {
message = json['message'];
theBool = json['bool'];
data = json['data'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['message'] = message;
data['bool'] = theBool;
data['data'] = this.data;
return data;
}
}