GraphBlockRecord constructor

const GraphBlockRecord({
  1. @Default.new('app.bsky.graph.block') String $type,
  2. required String subject,
  3. @JsonKey.new(toJson: iso8601) required DateTime createdAt,
  4. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory GraphBlockRecord({
  @Default('app.bsky.graph.block') String $type,

  /// DID of the account to be blocked.
  required String subject,
  @JsonKey(toJson: iso8601) required DateTime createdAt,

  Map<String, dynamic>? $unknown,
}) = _GraphBlockRecord;