toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "id": id,
      "full_name": fullName,
      "profile_image": profileImage,
      "address": address,
      "followers": followers,
      "following": following,
      "reviews": reviews,
      "gender": gender,
      "about_me": aboutMe,
      "relationship_status": relationshipStatus,
      "music_type": musicType == null ? [] : List<dynamic>.from(musicType!.map((x) => x)),
      "interests": interests == null ? [] : List<dynamic>.from(interests!.map((x) => x)),
      "is_follow": isFollow,
      "is_online": isOnline,
      "is_private_account": isPrivateAccount,
      "button_status": buttonStatus,
      "friend_follow": friendFollow,
      "is_block": isBlock,
      "can_message": canMessage
    };