Skip to content

Instantly share code, notes, and snippets.

@EldonMcGuinness
Created March 18, 2024 23:34
Show Gist options
  • Save EldonMcGuinness/95fb4e1196bf37a1bc281475a6408fc1 to your computer and use it in GitHub Desktop.
Save EldonMcGuinness/95fb4e1196bf37a1bc281475a6408fc1 to your computer and use it in GitHub Desktop.
class Variable {
obj: any;
constructor() {
this.obj = JSON.parse( MakerWebhooks.makeWebRequestQueryJson[0].ResponseBody );
}
get( name: string ) {
if ( !(name in this.obj) ){
return false;
}else{
return this.obj[name]
}
}
set( name: string, value: any ){
this.obj[name] = value;
}
json(){
return JSON.stringify(this.obj);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment