Insparkspokalen-ui/lib/models/informationModel.dart
2025-05-13 15:06:22 +02:00

23 lines
542 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'informationModel.g.dart';
@JsonSerializable()
class InformationModel {
final String title;
final String content;
final String author;
final DateTime createdAt;
InformationModel({
required this.title,
required this.content,
required this.author,
required this.createdAt,
});
factory InformationModel.fromJson(Map<String, dynamic> json) =>
_$InformationModelFromJson(json);
Map<String, dynamic> toJson() => _$InformationModelToJson(this);
}