toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final date = this.date;
  final message = this.message;
  final name = this.name;
  final additionalInfo = this.additionalInfo;
  return {
    'Date': unixTimestampToJson(date),
    'Message': message,
    'Name': name.toValue(),
    if (additionalInfo != null) 'AdditionalInfo': additionalInfo,
  };
}