UserProfile.fromJson constructor

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

Implementation

UserProfile.fromJson(Map<String, dynamic> json)
    : this.userFname = ifNullReturnEmpty(json['user_fname']),
      this.userLname = ifNullReturnEmpty(json['user_lname']),
      this.userEmail = ifNullReturnEmpty(json['user_email']),
      this.userPhone = ifNullReturnEmpty(json['user_phone']),
      this.userId = json['user_id'].toString();