lib/mail/Asm.php
public function jsonSerialize()
    {
        return array_filter(
            [
                'group_id' => $this->getGroupId(),
                'groups_to_display' => $this->getGroupsToDisplay()
            ],
            function ($value) {
                return $value !== null;
            }
        ) ?: null;
    }
public function jsonSerialize()
    {
        return array_filter(
            [
                'group_id' => $this->getGroupId(),
                'groups_to_display' => $this->getGroupsToDisplay()
            ],
            function ($value) {
                return $value !== null;
            }
        ) ?: null;
    }
public function jsonSerialize ( ) { return array_filter ( [ 'group_id' => $ this -> getGroupId ( ) , 'groups_to_display' => $ this -> getGroupsToDisplay ( ) ] , function ( $ value ) { return $ value !== null ; } ) ? : null ; }
Return an array representing a Asm object for the Twilio SendGrid API

@return null|array
Return an array representing a Asm object for the Twilio SendGrid API