toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "message_id": messageId,
    "sender_id": senderId.toJson(),
    "sender_name": senderName,
    "is_outgoing": isOutgoing,
    "content": content.toJson(),
  };
}