UserProfile.fromJson constructor

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

Implementation

factory UserProfile.fromJson(Map<String, dynamic> json) {
  return UserProfile(
    name: json['name'],
    desc: json['desc'],
    picture: json['picture'],
    blockedUsersList: List<String>.from(json['blockedUsersList'] ?? []),
    profileVerificationProof: json['profileVerificationProof'],
  );
}