[[["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 2024-04-16 UTC."],[],[],null,["# ServerTemplate interface\n\nRepresents a stateful abstraction for a Remote Config server template.\n\n**Signature:** \n\n export interface ServerTemplate \n\nMethods\n-------\n\n| Method | Description |\n|----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [evaluate(context)](./firebase-admin.remote-config.servertemplate.md#servertemplateevaluate) | Evaluates the current template to produce a [ServerConfig](./firebase-admin.remote-config.serverconfig.md#serverconfig_interface). |\n| [load()](./firebase-admin.remote-config.servertemplate.md#servertemplateload) | Fetches and caches the current active version of the project's [ServerTemplate](./firebase-admin.remote-config.servertemplate.md#servertemplate_interface). |\n| [set(template)](./firebase-admin.remote-config.servertemplate.md#servertemplateset) | Sets and caches a [ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface) or a JSON string representing the server template |\n| [toJSON()](./firebase-admin.remote-config.servertemplate.md#servertemplatetojson) | Returns a JSON representation of [ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface) |\n\nServerTemplate.evaluate()\n-------------------------\n\nEvaluates the current template to produce a [ServerConfig](./firebase-admin.remote-config.serverconfig.md#serverconfig_interface).\n\n**Signature:** \n\n evaluate(context?: EvaluationContext): ServerConfig;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|--------------------------------------------------------------------------|-------------|\n| context | [EvaluationContext](./firebase-admin.remote-config.md#evaluationcontext) | |\n\n**Returns:**\n\n[ServerConfig](./firebase-admin.remote-config.serverconfig.md#serverconfig_interface)\n\nServerTemplate.load()\n---------------------\n\nFetches and caches the current active version of the project's [ServerTemplate](./firebase-admin.remote-config.servertemplate.md#servertemplate_interface).\n\n**Signature:** \n\n load(): Promise\u003cvoid\u003e;\n\n**Returns:**\n\nPromise\\\u003cvoid\\\u003e\n\nServerTemplate.set()\n--------------------\n\nSets and caches a [ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface) or a JSON string representing the server template\n\n**Signature:** \n\n set(template: ServerTemplateDataType): void;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------------------------------------------------------------------------------------|-------------|\n| template | [ServerTemplateDataType](./firebase-admin.remote-config.md#servertemplatedatatype) | |\n\n**Returns:**\n\nvoid\n\nServerTemplate.toJSON()\n-----------------------\n\nReturns a JSON representation of [ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface)\n\n**Signature:** \n\n toJSON(): ServerTemplateData;\n\n**Returns:**\n\n[ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface)"]]