toJson method

Map<String, dynamic> toJson()

Implementation

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