toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _resultData = <String, dynamic>{};
  final l$id = id;
  _resultData['id'] = l$id;
  final l$email = email;
  _resultData['email'] = l$email;
  final l$gender = gender;
  _resultData['gender'] =
      l$gender == null ? null : toJson$Enum$Gender(l$gender);
  final l$locale = locale;
  _resultData['locale'] = l$locale;
  final l$widget = widget;
  _resultData['widget'] = l$widget;
  final l$lastName = lastName;
  _resultData['lastName'] = l$lastName;
  final l$username = username;
  _resultData['username'] = l$username;
  final l$firstName = firstName;
  _resultData['firstName'] = l$firstName;
  final l$createdAt = createdAt;
  _resultData['createdAt'] = dateTimeToJson(l$createdAt);
  final l$updatedAt = updatedAt;
  _resultData['updatedAt'] = dateTimeToJson(l$updatedAt);
  final l$isMailValid = isMailValid;
  _resultData['isMailValid'] = l$isMailValid;
  final l$dateOfBirth = dateOfBirth;
  _resultData['dateOfBirth'] =
      l$dateOfBirth == null ? null : dateTimeToJson(l$dateOfBirth);
  final l$mobileTheme = mobileTheme;
  _resultData['mobileTheme'] = l$mobileTheme == null
      ? null
      : toJson$Enum$MobileThemesEnum(l$mobileTheme);
  final l$maritalStatus = maritalStatus;
  _resultData['maritalStatus'] = l$maritalStatus == null
      ? null
      : toJson$Enum$MaritalStatus(l$maritalStatus);
  final l$phone = phone;
  _resultData['phone'] = l$phone?.toJson();
  final l$picture = picture;
  _resultData['picture'] = l$picture?.toJson();
  final l$residentialAddress = residentialAddress;
  _resultData['residentialAddress'] =
      l$residentialAddress?.map((e) => e.toJson()).toList();
  final l$chatContact = chatContact;
  _resultData['chatContact'] = l$chatContact?.map((e) => e.toJson()).toList();
  final l$socialMedia = socialMedia;
  _resultData['socialMedia'] = l$socialMedia?.map((e) => e.toJson()).toList();
  final l$socialLoginData = socialLoginData;
  _resultData['socialLoginData'] = l$socialLoginData?.toJson();
  final l$education = education;
  _resultData['education'] = l$education?.map((e) => e.toJson()).toList();
  final l$work = work;
  _resultData['work'] = l$work?.map((e) => e.toJson()).toList();
  final l$hobbies = hobbies;
  _resultData['hobbies'] = l$hobbies?.map((e) => e).toList();
  final l$interests = interests;
  _resultData['interests'] = l$interests?.map((e) => e).toList();
  return _resultData;
}