RzpUserProfile.fromMap constructor

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

Implementation

factory RzpUserProfile.fromMap(Map<String, dynamic> map) {
  return RzpUserProfile(
    name: map['name'] != null ? map['name'] as String : null,
    phoneNumber:
        map['phoneNumber'] != null ? map['phoneNumber'] as String : null,
    email: map['email'] != null ? map['email'] as String : null,
    uid: map['uid'] as String,
  );
}