UserCache.fromMap constructor

UserCache.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory UserCache.fromMap(Map<String, dynamic> map) =>
    UserCache(id: map['id'] as int, name: map['name'] as String, token: map['token'] as String, role: map['role'] as String, avatar: map['avatar'] as String, email: map['email'] as String);