FollowCommunity constructor

  1. @JsonSerializable.new(includeIfNull: false)
const FollowCommunity({
  1. @JsonKey.new(name: 'community_id') required int communityId,
  2. required bool follow,
  3. required String auth,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory FollowCommunity({
  /// The community to follow/unfollow.
  @JsonKey(name: 'community_id') required int communityId,

  /// True to follow, false to unfollow.
  required bool follow,

  /// Auth token.
  required String auth,
}) = _FollowCommunity;