public function toObject() { $response = new stdClass(); $response->fields = $this->fields->toObject(); if ($this->isSuccessful()) { $response->success = Gpf::YES; $response->message = $this->infoMessage; } else { $response->success = "N"; $response->message = $this->errorMessage; } return $response; }
public function toObject() { return $this->response->toObject(); }