17 lines
356 B
Dart
17 lines
356 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'logentry.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class LogEntry {
|
|
DateTime time;
|
|
String uid;
|
|
|
|
LogEntry({required this.time, required this.uid});
|
|
|
|
factory LogEntry.fromJson(Map<String, dynamic> json) =>
|
|
_$LogEntryFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$LogEntryToJson(this);
|
|
}
|