User.fromJson constructor

User.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory User.fromJson(Map<String, dynamic> map) {
  return User(
    email: map['email'] as String,
    name: map['name'] as String,
    userId: map['local_id'] as String,
    data: map['data'] as Map<String, dynamic>?,
  );
}