encode abstract method

Future<String?> encode(
  1. String topic,
  2. Map<String, dynamic> payload, {
  3. EncodeOptions? options,
})

Implementation

Future<String?> encode(
  String topic,
  Map<String, dynamic> payload, {
  EncodeOptions? options,
});