UNPKG

@adapty/capacitor

Version:
15 lines 318 B
export class JSONCoder { decode(input) { if (!input) { return {}; } return JSON.parse(input); } encode(value) { if (Object.keys(value).length === 0) { return ''; } return JSON.stringify(value); } } //# sourceMappingURL=json.js.map