@override Map<String, dynamic> toJson() => <String, Object?>{ 'type': type, 'timestamp': timestamp ?? -1, };