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/menu_entries.dart

70 lines
1.8 KiB
Dart

import 'dart:convert';
class GetMenuEntriesList {
int? lvl;
String? menUEntryType;
String? prompt;
String? menUName;
dynamic parenTMenuName;
int? entrYSequence;
dynamic functioNName;
dynamic requesTType;
dynamic adDButton;
dynamic updatEButton;
dynamic deletEButton;
String? icon;
dynamic attachmenTRequired;
GetMenuEntriesList({
this.lvl,
this.menUEntryType,
this.prompt,
this.menUName,
this.parenTMenuName,
this.entrYSequence,
this.functioNName,
this.requesTType,
this.adDButton,
this.updatEButton,
this.deletEButton,
this.icon,
this.attachmenTRequired,
});
factory GetMenuEntriesList.fromRawJson(String str) => GetMenuEntriesList.fromJson(json.decode(str));
String toRawJson() => json.encode(toJson());
factory GetMenuEntriesList.fromJson(Map<String, dynamic> json) => GetMenuEntriesList(
lvl: json["lvl"],
menUEntryType: json["menU_ENTRY_TYPE"],
prompt: json["prompt"],
menUName: json["menU_NAME"],
parenTMenuName: json["parenT_MENU_NAME"],
entrYSequence: json["entrY_SEQUENCE"],
functioNName: json["functioN_NAME"],
requesTType: json["requesT_TYPE"],
adDButton: json["adD_BUTTON"],
updatEButton: json["updatE_BUTTON"],
deletEButton: json["deletE_BUTTON"],
icon: json["icon"],
attachmenTRequired: json["attachmenT_REQUIRED"],
);
Map<String, dynamic> toJson() => {
"lvl": lvl,
"menU_ENTRY_TYPE": menUEntryType,
"prompt": prompt,
"menU_NAME": menUName,
"parenT_MENU_NAME": parenTMenuName,
"entrY_SEQUENCE": entrYSequence,
"functioN_NAME": functioNName,
"requesT_TYPE": requesTType,
"adD_BUTTON": adDButton,
"updatE_BUTTON": updatEButton,
"deletE_BUTTON": deletEButton,
"icon": icon,
"attachmenT_REQUIRED": attachmenTRequired,
};
}