public static function fromFile($filename, $localeGroup, array $languages = [])
    {
        $content = self::jsonFileContent($filename);

        return self::fromJson($content, $localeGroup, $languages);
    }
public static function fromFile($filename, $localeGroup, array $languages = [])
    {
        $content = self::jsonFileContent($filename);

        return self::fromJson($content, $localeGroup, $languages);
    }
public static function fromFile ( $ filename , $ localeGroup , array $ languages = [ ] ) { $ content = self :: jsonFileContent ( $ filename ) ; return self :: fromJson ( $ content , $ localeGroup , $ languages ) ; }
It transfres a given string to a collection of field

@param string|json $json
@param string $localeGroup
@param array $languages

@return CrestApps\CodeGenerator\Models\Resource
It transfres a given string to a collection of field