UpDrawerItem.fromJson constructor
Implementation
factory UpDrawerItem.fromJson(Map<String, dynamic> json) {
UpDrawerItem drawerItem = UpDrawerItem(
icon: json['icon'],
title: json['title'],
path: json['path'],
onTap: () {},
);
return drawerItem;
}