Tag constructor
- @JsonSerializable(includeIfNull: false)
const
Tag(
{ - required String name,
- required String url,
- @JsonKey(name: 'history') List<UsageStatistics>? usageHistory,
- @JsonKey(name: 'following') bool? isFollowing,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Tag({
/// The value of the hashtag after the # sign.
required String name,
/// A link to the hashtag on the instance.
required String url,
/// Usage history for given days (typically the past week).
@JsonKey(name: 'history') List<UsageStatistics>? usageHistory,
/// Whether the current token’s authorized user is following this tag.
@JsonKey(name: 'following') bool? isFollowing,
}) = _Tag;