RepoViewDetail constructor

  1. @JsonSerializable(includeIfNull: false)
const RepoViewDetail({
  1. @Default(toolsOzoneModerationDefsRepoViewDetail) @JsonKey(name: r'$type') String $type,
  2. required String did,
  3. required String handle,
  4. String? email,
  5. required List<Map<String, dynamic>> relatedRecords,
  6. required DateTime indexedAt,
  7. @ModerationDetailConverter() required ModerationDetail moderation,
  8. @LabelConverter() List<Label>? labels,
  9. @InviteCodeConverter() InviteCode? invitedBy,
  10. @InviteCodeConverter() List<InviteCode>? invites,
  11. @Default(false) bool invitesDisabled,
  12. String? inviteNote,
  13. DateTime? emailConfirmedAt,
  14. DateTime? deactivatedAt,
  15. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RepoViewDetail({
  /// The unique namespace for this lex object.
  ///
  /// `tools.ozone.moderation.defs#repoViewDetail`
  @Default(toolsOzoneModerationDefsRepoViewDetail)
  @JsonKey(name: r'$type')
  String $type,
  required String did,
  required String handle,
  String? email,
  required List<Map<String, dynamic>> relatedRecords,
  required DateTime indexedAt,
  @ModerationDetailConverter() required ModerationDetail moderation,
  @LabelConverter() List<Label>? labels,
  @InviteCodeConverter() InviteCode? invitedBy,
  @InviteCodeConverter() List<InviteCode>? invites,
  @Default(false) bool invitesDisabled,
  String? inviteNote,
  DateTime? emailConfirmedAt,
  DateTime? deactivatedAt,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _RepoViewDetail;