Parsing type field of media json
Media::getType method