You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemm-flutter-app/lib/models/dashboard/list_menu.dart

46 lines
1.1 KiB
Dart

import 'dart:convert';
class ListMenu {
int? menUId;
String? menUName;
String? menUType;
dynamic suBMenuName;
dynamic resPId;
int? requesTGroupId;
String? requesTGroupName;
ListMenu({
this.menUId,
this.menUName,
this.menUType,
this.suBMenuName,
this.resPId,
this.requesTGroupId,
this.requesTGroupName,
});
factory ListMenu.fromRawJson(String str) => ListMenu.fromJson(json.decode(str));
String toRawJson() => json.encode(toJson());
factory ListMenu.fromJson(Map<String, dynamic> json) => ListMenu(
menUId: json["menU_ID"],
menUName: json["menU_NAME"],
menUType: json["menU_TYPE"],
suBMenuName: json["suB_MENU_NAME"],
resPId: json["resP_ID"],
requesTGroupId: json["requesT_GROUP_ID"],
requesTGroupName: json["requesT_GROUP_NAME"],
);
Map<String, dynamic> toJson() => {
"menU_ID": menUId,
"menU_NAME": menUName,
"menU_TYPE": menUType,
"suB_MENU_NAME": suBMenuName,
"resP_ID": resPId,
"requesT_GROUP_ID": requesTGroupId,
"requesT_GROUP_NAME": requesTGroupName,
};
}