gfw-api/gfw-geostore-api

View on GitHub
app/src/serializers/countryListSerializer.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class CountryListSerializer {

    static serialize(data) {
        return {
            data: data.map((el) => ({
                geostoreId: el.hash,
                iso: el.info.iso,
                name: el.name
            }))
        };
    }

}

module.exports = CountryListSerializer;