toJson method

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

Implementation

@override
Map<String, Object?> toJson() => {
      if (recipient != null) "recipient": encodeValue(recipient),
      if (channel != null) "channel": encodeValue(channel),
      if (senderId != null) "sender_id": encodeValue(senderId),
    };