code: public function transformCard(AbstractMessage $message)
      {
          $type = $message->getType();
  
          return [
                  'msgtype' => $type,
                  $type => [
                              'card_id' => $message->get('card_id'),
                              ],
                 ];
      }
docs: Transform wxcard message.
  
  @return array