toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "created_at": feedsDatumCreatedAt,
      "createdAt": createdAt,
      "updatedAt": updatedAt,
      "id": id,
      "user_id": userId,
      "message": message,
      "tags": tags == null
          ? []
          : List<dynamic>.from(tags!.map((x) => x.toJson())),
      "urgency_id": urgencyId,
      "expiry": expiry,
      "bounty_status": bountyStatus,
      "suggested_users": suggestedUsers == null
          ? []
          : List<dynamic>.from(suggestedUsers!.map((x) => x.toJson())),
      "suggested_tags": suggestedTags == null
          ? []
          : List<dynamic>.from(suggestedTags!.map((x) => x.toJson())),
      "last_answered": lastAnswered,
      "published_at": publishedAt,
      "new_answer": newAnswer,
      "community_only": communityOnly,
      "hunters": hunters == null
          ? []
          : List<dynamic>.from(hunters!.map((x) => x.toJson())),
      "user": user?.toJson(),
      "bountyCommunityMaps": bountyCommunityMaps == null
          ? []
          : List<dynamic>.from(bountyCommunityMaps!.map((x) => x.toJson())),
    };