UNPKG

react-native-lightspeedsdk

Version:
25 lines (21 loc) 430 B
'use strict'; type LocationCategoryMap = { categoryId:number, name:string, quota:number }; /** * Represents an immutable Location Category */ class LocationCategory { categoryId:number; name:string; quota:number; constructor(map: LocationCategoryMap) { this.categoryId = map.categoryId; this.name = map.name; this.quota = map.quota; Object.freeze(this); } } module.exports = LocationCategory;