InviteCode constructor

const InviteCode({
  1. required String code,
  2. @JsonKey(name: 'available') @Default(0) int availableCount,
  3. @JsonKey(name: 'disabled') @Default(false) bool isDisabled,
  4. required String forAccount,
  5. required List<InviteCodeUse> uses,
  6. required String createdBy,
  7. required DateTime createdAt,
})

Implementation

const factory InviteCode({
  required String code,
  @JsonKey(name: 'available') @Default(0) int availableCount,
  @JsonKey(name: 'disabled') @Default(false) bool isDisabled,
  required String forAccount,
  required List<InviteCodeUse> uses,
  required String createdBy,
  required DateTime createdAt,
}) = _InviteCode;