User.fromMap constructor

User.fromMap(
  1. Map<String, dynamic> data
)

Implementation

factory User.fromMap(Map<String, dynamic> data) => User(
      firstName: data['first_name'],
      lastName: data['last_name'],
      image: data['image'],
      imageUrl: data['image_url'],
      profileData: data['profile_data'],
    );