Created
March 18, 2024 23:34
-
-
Save EldonMcGuinness/95fb4e1196bf37a1bc281475a6408fc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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