toJson method

Map<String, dynamic> toJson()

Implementation

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