diff --git a/Models/DrawImage.php b/Models/DrawImage.php index eb2b6b4..1527409 100644 --- a/Models/DrawImage.php +++ b/Models/DrawImage.php @@ -136,12 +136,12 @@ class DrawImage implements ArrayableInterface, \JsonSerializable public function __toString() { - return $this->jsonSerialize(); + return json_encode($this->toArray()); } public function jsonSerialize() { - return json_encode($this->toArray()); + return $this->toArray(); } public static function fromMedia(Media $media)