52 lines
1.6 KiB
Dart
52 lines
1.6 KiB
Dart
class EditProfileModel {
|
|
final bool isSuccess;
|
|
final String message;
|
|
final String fullName;
|
|
final String contactNumber;
|
|
final String emailId;
|
|
final String? profilePicture;
|
|
final String description;
|
|
final String userBio;
|
|
final String gender;
|
|
final String age;
|
|
final String city;
|
|
final String fullAddress;
|
|
final String height;
|
|
final String weight;
|
|
|
|
const EditProfileModel({
|
|
required this.isSuccess,
|
|
required this.message,
|
|
required this.fullName,
|
|
required this.contactNumber,
|
|
required this.emailId,
|
|
required this.profilePicture,
|
|
required this.description,
|
|
required this.userBio,
|
|
required this.gender,
|
|
required this.age,
|
|
required this.city,
|
|
required this.fullAddress,
|
|
required this.height,
|
|
required this.weight,
|
|
});
|
|
|
|
factory EditProfileModel.fromJson(Map<String, dynamic> json) =>
|
|
EditProfileModel(
|
|
isSuccess: json['success'],
|
|
message: json['message'],
|
|
fullName: json['result']['full_name'],
|
|
contactNumber: json['result']['contact_number'],
|
|
emailId: json['result']['email_id'],
|
|
profilePicture: json['result']['user_detail']['profile_picture'],
|
|
userBio: json['result']['user_detail']['user_bio'],
|
|
description: json['result']['user_detail']['description'],
|
|
gender: json['result']['user_detail']['gender'],
|
|
age: json['result']['user_detail']['age'],
|
|
city: json['result']['user_detail']['city'],
|
|
fullAddress: json['result']['user_detail']['full_address'],
|
|
height: json['result']['user_detail']['height'],
|
|
weight: json['result']['user_detail']['weight'],
|
|
);
|
|
}
|