BlockRecord constructor
- @JsonSerializable(includeIfNull: false)
const
BlockRecord(
{ - @Default(appBskyGraphBlock) @JsonKey(name: r'$type') String $type,
- required String subject,
- required DateTime createdAt,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory BlockRecord({
/// The unique namespace for this lex object.
///
/// `app.bsky.graph.block`
@Default(appBskyGraphBlock) @JsonKey(name: r'$type') String $type,
/// DID of the account to be blocked.
required String subject,
required DateTime createdAt,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _BlockRecord;