public static function batchResponse($json)
    {
        $fields = Deserialize::_fromJson($json);
        return Deserialize::_batchResponseFromFields($json, $fields);
    }
public static function batchResponse($json)
    {
        $fields = Deserialize::_fromJson($json);
        return Deserialize::_batchResponseFromFields($json, $fields);
    }
public static function batchResponse ( $ json ) { $ fields = Deserialize :: _fromJson ( $ json ) ; return Deserialize :: _batchResponseFromFields ( $ json , $ fields ) ; }
Reads a JSON blob describing a batch result.

If the `type` field has the value `mt_text` then an
`MtBatchSmsTextCreate` object is returned, if the value is
`mt_binary` then an `MtBatchTextSmsCreate` object is
returned, otherwise an exception is thrown.

@param string $json the JSON text to interpret

@return Api\MtBatchSmsResult the parsed result

@throws UnexpectedResponseException if the JSON contained an
unexpected message type
Reads a JSON blob describing a batch result .