UNPKG

react-native-lightspeedsdk

Version:
29 lines (24 loc) 476 B
'use strict'; type SweepsWinnerMap = { name:string, location:string, currency:string, amount:number }; /** * Represents an immutable Survey */ class SweepsCampaign { name:string; location:string; currency:string; amount:number; constructor(map: SweepsWinnerMap) { this.name = map.name; this.location = map.location; this.currency = map.currency; this.amount = map.amount; Object.freeze(this); } } module.exports = SweepsCampaign;