UpDrawerItem.fromJson constructor

UpDrawerItem.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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