repair add makanan page, addes socket io client for real time update data, added table status change page
This commit is contained in:
21
lib/model/my_model.dart
Normal file
21
lib/model/my_model.dart
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user