* Serializes this instance into the provided serializer context. * @param {ObjectSerializerContext} context context
({ write, writeLazy })
| 72 | * @param {ObjectSerializerContext} context context |
| 73 | */ |
| 74 | serialize({ write, writeLazy }) { |
| 75 | write(this.version); |
| 76 | write(this.buildSnapshot); |
| 77 | write(this.buildDependencies); |
| 78 | write(this.resolveResults); |
| 79 | write(this.resolveBuildDependenciesSnapshot); |
| 80 | /** @type {NonNullable<ObjectSerializerContext["writeLazy"]>} */ |
| 81 | (writeLazy)(this.data); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Restores this instance from the provided deserializer context. |