recipe-ts-runtime
Version:
TypeScript run-time library for the Recipe framework
21 lines • 591 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const Recipe_1 = require("./Recipe");
const Cake_1 = require("./Cake");
class Payload {
constructor(recipe, cake) {
this.recipe = recipe;
this.cake = cake;
}
static fromJSON(json, ingredientTypes) {
return new Payload(Recipe_1.Recipe.fromJSON(json.recipe, ingredientTypes), Cake_1.Cake.fromJSON(json.cake));
}
getRecipe() {
return this.recipe;
}
getCake() {
return this.cake;
}
}
exports.Payload = Payload;
//# sourceMappingURL=Payload.js.map