toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts to JSON encodable Map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'date': date,
    'sender_chat': senderChat.toJson(),
    'author_signature': authorSignature,
  }..removeWhere(_nullFilter);
}