[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-07-10 UTC."],[],[],null,["# Change class\n\nThe Cloud Functions interface for events that change state, such as Realtime Database or Cloud Firestore `onWrite` and `onUpdate` events.\n\nFor more information about the format used to construct `Change` objects, see below.\n\n**Signature:** \n\n export declare class Change\u003cT\u003e \n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|----------------------------------------------------------------------------------|-----------|-------------------------------------------------|\n| [(constructor)(before, after)](./firebase-functions.change.md#changeconstructor) | | Constructs a new instance of the `Change` class |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|-------------------------------------------------------|-----------|------|-------------|\n| [after](./firebase-functions.change.md#changeafter) | | T | |\n| [before](./firebase-functions.change.md#changebefore) | | T | |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|--------------------------------------------------------------------------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [fromJSON(json, customizer)](./firebase-functions.change.md#changefromjson) | `static` | Factory method for creating a `Change` from JSON and an optional customizer function to be applied to both the `before` and the `after` fields. |\n| [fromObjects(before, after)](./firebase-functions.change.md#changefromobjects) | `static` | Factory method for creating a `Change` from a `before` object and an `after` object. |\n\nChange.(constructor)\n--------------------\n\nConstructs a new instance of the `Change` class\n\n**Signature:** \n\n constructor(before: T, after: T);\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| before | T | |\n| after | T | |\n\nChange.after\n------------\n\n**Signature:** \n\n after: T;\n\nChange.before\n-------------\n\n**Signature:** \n\n before: T;\n\nChange.fromJSON()\n-----------------\n\nFactory method for creating a `Change` from JSON and an optional customizer function to be applied to both the `before` and the `after` fields.\n\n**Signature:** \n\n static fromJSON\u003cT\u003e(json: ChangeJson, customizer?: (x: any) =\u003e T): Change\u003cT\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|------------|----------------|-------------|\n| json | ChangeJson | |\n| customizer | (x: any) =\\\u003e T | |\n\n**Returns:**\n\n[Change](./firebase-functions.change.md#change_class)\\\u003cT\\\u003e\n\nChange.fromObjects()\n--------------------\n\nFactory method for creating a `Change` from a `before` object and an `after` object.\n\n**Signature:** \n\n static fromObjects\u003cT\u003e(before: T, after: T): Change\u003cT\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| before | T | |\n| after | T | |\n\n**Returns:**\n\n[Change](./firebase-functions.change.md#change_class)\\\u003cT\\\u003e"]]