class GetuserdetailsModel { String? status; int? statusCode; String? message; Data? data; GetuserdetailsModel({this.status, this.statusCode, this.message, this.data}); GetuserdetailsModel.fromJson(Map json) { status = json['status']; statusCode = json['status_code']; message = json['message']; data = json['data'] != null ? new Data.fromJson(json['data']) : null; } Map toJson() { final Map data = {}; data['status'] = status; data['status_code'] = statusCode; data['message'] = message; if (this.data != null) { data['data'] = this.data!.toJson(); } return data; } } class Data { UserData? userData; List? userCommunity; List? userGroups; Data({this.userData, this.userCommunity, this.userGroups}); Data.fromJson(Map json) { userData = json['userData'] != null ? new UserData.fromJson(json['userData']) : null; if (json['userCommunity'] != null) { userCommunity = []; json['userCommunity'].forEach((v) { userCommunity!.add(new UserCommunity.fromJson(v)); }); } if (json['userGroups'] != null) { userGroups = []; json['userGroups'].forEach((v) { userGroups!.add(new UserGroups.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); if (userData != null) { data['userData'] = userData!.toJson(); } if (userCommunity != null) { data['userCommunity'] = userCommunity!.map((v) => v.toJson()).toList(); } if (userGroups != null) { data['userGroups'] = userGroups!.map((v) => v.toJson()).toList(); } return data; } } class UserData { int? id; int? principalTypeXid; String? googleId; String? appleId; String? userName; String? fullName; String? gender; String? dateOfBirth; String? phoneNumber; String? emailAddress; String? addressLine1; String? addressLine2; String? postCode; String? lastLoginDatetime; String? profilePhoto; int? isProfileUpdated; String? isActive; String? createdAt; UserData( {this.id, this.principalTypeXid, this.googleId, this.appleId, this.userName, this.fullName, this.gender, this.dateOfBirth, this.phoneNumber, this.emailAddress, this.addressLine1, this.addressLine2, this.postCode, this.lastLoginDatetime, this.profilePhoto, this.isProfileUpdated, this.isActive, this.createdAt}); UserData.fromJson(Map json) { id = json['id']; principalTypeXid = json['principal_type_xid']; googleId = json['google_id']; appleId = json['apple_id']; userName = json['user_name']; fullName = json['full_name']; gender = json['gender']; dateOfBirth = json['date_of_birth']; phoneNumber = json['phone_number']; emailAddress = json['email_address']; addressLine1 = json['address_line1']; addressLine2 = json['address_line2']; postCode = json['post_code']; lastLoginDatetime = json['last_login_datetime']; profilePhoto = json['profile_photo']; isProfileUpdated = json['is_profile_updated']; isActive = json['is_active']; createdAt = json['created_at']; } Map toJson() { final Map data = new Map(); data['id'] = id; data['principal_type_xid'] = principalTypeXid; data['google_id'] = googleId; data['apple_id'] = appleId; data['user_name'] = userName; data['full_name'] = fullName; data['gender'] = gender; data['date_of_birth'] = dateOfBirth; data['phone_number'] = phoneNumber; data['email_address'] = emailAddress; data['address_line1'] = addressLine1; data['address_line2'] = addressLine2; data['post_code'] = postCode; data['last_login_datetime'] = lastLoginDatetime; data['profile_photo'] = profilePhoto; data['is_profile_updated'] = isProfileUpdated; data['is_active'] = isActive; data['created_at'] = createdAt; return data; } } class UserCommunity { int? id; int? iamPrincipalXid; int? manageCommunityXid; String? joinedAt; int? isActive; CommunityData? communityData; UserCommunity( {this.id, this.iamPrincipalXid, this.manageCommunityXid, this.joinedAt, this.isActive, this.communityData}); UserCommunity.fromJson(Map json) { id = json['id']; iamPrincipalXid = json['iam_principal_xid']; manageCommunityXid = json['manage_community_xid']; joinedAt = json['joined_at']; isActive = json['is_active']; communityData = json['community_data'] != null ? new CommunityData.fromJson(json['community_data']) : null; } Map toJson() { final Map data = new Map(); data['id'] = id; data['iam_principal_xid'] = iamPrincipalXid; data['manage_community_xid'] = manageCommunityXid; data['joined_at'] = joinedAt; data['is_active'] = isActive; if (communityData != null) { data['community_data'] = communityData!.toJson(); } return data; } } class CommunityData { int? id; String? communityProfilePhoto; String? communityBannerImage; String? communityName; String? communityLocation; String? communityDescription; int? communityTypeXid; int? activityXid; int? isActive; String? createdAt; CommunityData( {this.id, this.communityProfilePhoto, this.communityBannerImage, this.communityName, this.communityLocation, this.communityDescription, this.communityTypeXid, this.activityXid, this.isActive, this.createdAt}); CommunityData.fromJson(Map json) { id = json['id']; communityProfilePhoto = json['community_profile_photo']; communityBannerImage = json['community_banner_image']; communityName = json['community_name']; communityLocation = json['community_location']; communityDescription = json['community_description']; communityTypeXid = json['community_type_xid']; activityXid = json['activity_xid']; isActive = json['is_active']; createdAt = json['created_at']; } Map toJson() { final Map data = new Map(); data['id'] = id; data['community_profile_photo'] = communityProfilePhoto; data['community_banner_image'] = communityBannerImage; data['community_name'] = communityName; data['community_location'] = communityLocation; data['community_description'] = communityDescription; data['community_type_xid'] = communityTypeXid; data['activity_xid'] = activityXid; data['is_active'] = isActive; data['created_at'] = createdAt; return data; } } class UserGroups { int? id; int? iamPrincipalXid; int? manageGroupXid; String? createdAt; GroupData? groupData; UserGroups( {this.id, this.iamPrincipalXid, this.manageGroupXid, this.createdAt, this.groupData}); UserGroups.fromJson(Map json) { id = json['id']; iamPrincipalXid = json['iam_principal_xid']; manageGroupXid = json['manage_group_xid']; createdAt = json['created_at']; groupData = json['group_data'] != null ? new GroupData.fromJson(json['group_data']) : null; } Map toJson() { final Map data = new Map(); data['id'] = id; data['iam_principal_xid'] = iamPrincipalXid; data['manage_group_xid'] = manageGroupXid; data['created_at'] = createdAt; if (groupData != null) { data['group_data'] = groupData!.toJson(); } return data; } } class GroupData { int? id; int? manageGroupTypeXid; String? title; String? backgroundImage; String? groupImage; String? link; String? description; int? isActive; String? createdAt; GroupData( {this.id, this.manageGroupTypeXid, this.title, this.backgroundImage, this.groupImage, this.link, this.description, this.isActive, this.createdAt}); GroupData.fromJson(Map json) { id = json['id']; manageGroupTypeXid = json['manage_group_type_xid']; title = json['title']; backgroundImage = json['background_image']; groupImage = json['group_image']; link = json['link']; description = json['description']; isActive = json['is_active']; createdAt = json['created_at']; } Map toJson() { final Map data = new Map(); data['id'] = id; data['manage_group_type_xid'] = manageGroupTypeXid; data['title'] = title; data['background_image'] = backgroundImage; data['group_image'] = groupImage; data['link'] = link; data['description'] = description; data['is_active'] = isActive; data['created_at'] = createdAt; return data; } }