Map<String, dynamic> toJson() => { 'topic': topic, 'message': message, 'publishedAt': publishedAt, 'transportType': transportType.name, };