$file->toJson($callback = null)

Converts the entire media object into a JSON string

  • $callback (callable)
    Mapping callback
  • return (string)

This documentation entry is inherited from the Media class.