encodeMethodCall method

  1. @override
ByteData encodeMethodCall(
  1. MethodCall methodCall
)
override

Encodes the specified methodCall into binary.

Implementation

@override
ByteData encodeMethodCall(MethodCall methodCall) {
  return const JSONMessageCodec().encodeMessage(<String, Object?>{
    'method': methodCall.method,
    'args': methodCall.arguments,
  })!;
}