InstanceActivity constructor

  1. @JsonSerializable(includeIfNull: false)
const InstanceActivity({
  1. @UnixTimestampConverter() required DateTime week,
  2. @JsonKey(name: 'statuses') @IntConverter() required int statusCount,
  3. @JsonKey(name: 'logins') @IntConverter() required int loginCount,
  4. @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;