toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() =>
    {
      "id": id,
      "first_name": firstName,
      "last_name": lastName,
      "full_name": fullName,
      "email": email,
      "latitude": latitude,
      "longitude": longitude,
      "address": address,
      "country": country,
      "state": state,
      "city": city,
      "contact_number": contactNumber,
      "account_type": accountType,
      "user_type": userType,
      "dob": dob,
      "gender": gender,
      "business_ids": businessIds == null
          ? []
          : List<dynamic>.from(businessIds!.map((x) => x)),
      "interest_ids": interestIds == null
          ? []
          : List<dynamic>.from(interestIds!.map((x) => x)),
      "status": status,
      "time_zone": timeZone,
      "email_verified_at": emailVerifiedAt,
      "login_type": loginType,
      "uid": uid,
      "social_image": socialImage,
      "otp": otp,
      "profile_image": profileImage,
    };