public function fromJson($json)
 {
     if (!empty($json)) {
         parent::fromJson($json);
         $this->IsSuccessful = $this->jget($json, 'IsSuccessful');
         $this->PaymentId = $this->jget($json, 'PaymentId');
         $this->PaymentRequestId = $this->jget($json, 'PaymentRequestId');
         $this->Status = $this->jget($json, 'Status');
         $this->Transactions = array();
         if (!empty($json['Transactions'])) {
             foreach ($json['Transactions'] as $key => $value) {
                 $tr = new TransactionResponseModel();
                 $tr->fromJson($value);
                 array_push($this->Transactions, $tr);
             }
         }
     }
 }
 public function fromJson($json)
 {
     if (!empty($json)) {
         parent::fromJson($json);
         $this->PaymentId = $json['PaymentId'];
         $this->PaymentRequestId = $json['PaymentRequestId'];
         $this->Status = $json['Status'];
         $this->QRUrl = $json['QRUrl'];
         $this->RecurrenceResult = $json['RecurrenceResult'];
         $this->Transactions = array();
         if (!empty($json['Transactions'])) {
             foreach ($json['Transactions'] as $key => $value) {
                 $tr = new TransactionResponseModel();
                 $tr->fromJson($value);
                 array_push($this->Transactions, $tr);
             }
         }
     }
 }