UserReview.fromJson constructor
UserReview.fromJson(- dynamic json
)
Implementation
UserReview.fromJson(dynamic json) {
id = json['id'];
firstName = json['first_name'];
lastName = json['last_name'];
fullName = json['full_name'];
username = json['username'];
email = json['email'];
latitude = json['latitude'];
longitude = json['longitude'];
address = json['address'];
hometown = json['hometown'];
country = json['country'];
state = json['state'];
city = json['city'];
countryCode = json['country_code'];
contactNumber = json['contact_number'];
accountType = json['account_type'];
userType = json['user_type'];
dob = json['dob'];
gender = json['gender'];
aboutMe = json['about_me'];
relationshipStatus = json['relationship_status'];
businessIds = json['business_ids'];
interestIds = json['interest_ids'] != null ? json['interest_ids'].cast<num>() : [];
musicTypeIds = json['music_type_ids'] != null ? json['music_type_ids'].cast<num>() : [];
status = json['status'];
timeZone = json['time_zone'];
createdAt = json['created_at'];
emailVerifiedAt = json['email_verified_at'];
loginType = json['login_type'];
uid = json['uid'];
socialImage = json['social_image'];
socialMediaUrl = json['social_media_url'];
isOnline = json['is_online'];
otp = json['otp'];
profileImage = json['profile_image'];
apiToken = json['api_token'];
totalReviews = json['total_reviews'];
followers = json['followers'];
following = json['following'];
totalReview = json['total_review'];
}