asnasd/lib/models/content/redaction.dart
Henry-Hiles 2041b81141
add toJson to all content models
Fixes a regression from the primary constructor content migration
2026-10-25 18:30:28 -04:00

16 lines
545 B
Dart

import "package:freezed_annotation/freezed_annotation.dart";
import "package:nexus/models/content/content.dart";
part "redaction.freezed.dart";
part "redaction.g.dart";
@Freezed(toJson: false, fromJson: false)
@JsonSerializable()
class const RedactionContent({final String? reason, final String? redacts})
extends Content
with _$RedactionContent {
@override
Map<String, Object?> toJson() => _$RedactionContentToJson(this);
factory RedactionContent.fromJson(Map<String, Object?> json) =>
_$RedactionContentFromJson(json);
}