import { ApiInfo } from "../api/api-info";
import { ApiRoutesDictionary } from "../api/api-routes-dictionary";
export class ApiResourceMapper {
    static map(resource) {
        const apiRoutes = new ApiRoutesDictionary();
        for (const [key, value] of Object.entries(resource.routes)) {
            apiRoutes[key] = value;
        }
        const apiInfo = new ApiInfo(resource.fileVersion, resource.minimumSdkVersion, apiRoutes);
        return apiInfo;
    }
}
//# sourceMappingURL=api-resource-mapper.js.map