InstanceActivity constructor
- @JsonSerializable(includeIfNull: false)
const
InstanceActivity(
{ - @UnixTimestampConverter() required DateTime week,
- @JsonKey(name: 'statuses') @IntConverter() required int statusCount,
- @JsonKey(name: 'logins') @IntConverter() required int loginCount,
- @JsonKey(name: 'registrations') @IntConverter() required int registrationCount,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory InstanceActivity({
/// Midnight at the first day of the week.
@UnixTimestampConverter() required DateTime week,
/// The number of Statuses created since the week began.
@JsonKey(name: 'statuses') @IntConverter() required int statusCount,
/// The number of user logins since the week began.
@JsonKey(name: 'logins') @IntConverter() required int loginCount,
/// The number of user registrations since the week began.
@JsonKey(name: 'registrations')
@IntConverter()
required int registrationCount,
}) = _InstanceActivity;