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
2.5 KiB
Dart

import 'dart:convert';
class GetMenuEntriesList {
GetMenuEntriesList({
this.addButton,
this.deleteButton,
this.entrySequence,
this.functionName,
this.icon,
this.lvl,
this.menuEntryType,
this.menuName,
this.parentMenuName,
this.prompt,
this.requestType,
this.updateButton,
this.attachmenTRequired
});
String? addButton;
String? deleteButton;
int? entrySequence;
String? functionName;
String? icon;
int? lvl;
String? menuEntryType;
String? menuName;
String? parentMenuName;
String? prompt;
String? requestType;
String? updateButton;
dynamic attachmenTRequired;
factory GetMenuEntriesList.fromRawJson(String str) => GetMenuEntriesList.fromJson(json.decode(str));
String toRawJson() => json.encode(toJson());
factory GetMenuEntriesList.fromJson(Map<String, dynamic> json) => GetMenuEntriesList(
addButton: json["adDButton"] == null ? null : json["adDButton"],
deleteButton: json["deletEButton"] == null ? null : json["deletEButton"],
entrySequence: json["entrYSequence"] == null ? null : json["entrYSequence"],
functionName: json["functioNName"] == null ? null : json["functioNName"],
icon: json["icon"] == null ? null : json["icon"],
lvl: json["lvl"] == null ? null : json["lvl"],
menuEntryType: json["menU_ENTRY_TYPE"] == null ? null : json["menU_ENTRY_TYPE"],
menuName: json["menUName"] == null ? null : json["menUName"],
parentMenuName: json["parenTMenuName"] == null ? null : json["parenTMenuName"],
prompt: json["prompt"] == null ? null : json["prompt"],
requestType: json["requesTType"] == null ? null : json["requesTType"],
updateButton: json["updatEButton"] == null ? null :json["updatEButton"],
attachmenTRequired: json["attachmenT_REQUIRED"],
);
Map<String, dynamic> toJson() => {
"adDButton": addButton == null ? null :addButton,
"deletEButton": deleteButton == null ? null : deleteButton,
"entrYSequence": entrySequence == null ? null : entrySequence,
"functioNName": functionName == null ? null : functionName,
"icon": icon == null ? null : icon,
"lvl": lvl == null ? null : lvl,
"menU_ENTRY_TYPE": menuEntryType == null ? null : menuEntryType,
"menUName": menuName == null ? null : menuName,
"parenTMenuName": parentMenuName == null ? null : parentMenuName,
"prompt": prompt == null ? null : prompt,
"requesTType": requestType == null ? null : requestType,
"updatEButton": updateButton == null ? null : updateButton,
"attachmenT_REQUIRED": attachmenTRequired,
};
}