class ProfileResponse { String? error; StaffDetails? staffDetails; String? sessionExists; String? message; ProfileResponse( {this.error, this.staffDetails, this.sessionExists, this.message}); ProfileResponse.fromJson(Map json) { error = json['error']; staffDetails = json['staff_details'] != null ? new StaffDetails.fromJson(json['staff_details']) : null; sessionExists = json['session_exists']; message = json['message']; } Map toJson() { final Map data = new Map(); data['error'] = this.error; if (this.staffDetails != null) { data['staff_details'] = this.staffDetails!.toJson(); } data['session_exists'] = this.sessionExists; data['message'] = this.message; return data; } } class StaffDetails { String? email; String? firstname; String? lastname; String? smallProfilePic; String? profilePic; StaffDetails( {this.email, this.firstname, this.lastname, this.smallProfilePic, this.profilePic}); StaffDetails.fromJson(Map json) { email = json['email']; firstname = json['firstname']; lastname = json['lastname']; smallProfilePic = json['small_profile_pic']; profilePic = json['profile_pic']; } Map toJson() { final Map data = new Map(); data['email'] = this.email; data['firstname'] = this.firstname; data['lastname'] = this.lastname; data['small_profile_pic'] = this.smallProfilePic; data['profile_pic'] = this.profilePic; return data; } }