parseMessage method Null safety

Response parseMessage(
  1. Message message
)

Implementation

Response parseMessage(Message message) {
  final payload = message.payload?['result'];
  if (payload != null) {
    return _parser.parseResponse(payload as Map<String, dynamic>);
  }
  return Response(data: message.payload);
}