import { Configuration } from "./Configuration"; import { isNullOrUndefined } from "util"; export class Context { private _exchangeFees: number; private _configurations: Configuration[]; constructor( json: any ) { this._exchangeFees = json.exchangeFees; this._configurations = []; for( let configuration of json.configurations ) { this._configurations.push( new Configuration( configuration ) ); } } get exchangeFees(): number { return this._exchangeFees; } set exchangeFees( value: number ) { this._exchangeFees = value; } get configurations(): Configuration[] { return this._configurations; } set configurations( value: Configuration[] ) { this._configurations = value; } }