Iyzipay\Model\Mapper\CrossBookingToSubMerchantMapper::create PHP Method

create() public static method

public static create ( $rawResult = null )
    public static function create($rawResult = null)
    {
        return new CrossBookingToSubMerchantMapper($rawResult);
    }

Usage Example

 public static function create(CreateCrossBookingRequest $request, Options $options)
 {
     $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/crossbooking/send", parent::getHttpHeaders($request, $options), $request->toJsonString());
     return CrossBookingToSubMerchantMapper::create($rawResult)->jsonDecode()->mapCrossBookingToSubMerchant(new CrossBookingToSubMerchant());
 }