> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# fromMap

APISummary
Input data in key-value format and return the parsed `TemplateData` object.

## Syntax

### Android

```java
public static TemplateData fromMap(Map<String, Object> data);
```

#### Parameters

- `data`: `Map` type data.

#### Return

- `TemplateData` constructed by `data`.

### iOS

```objc
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
```

#### Parameters

- `dictionary`: `NSDictionary*` type data.

#### Return

- `TemplateData` constructed by `data`.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.template-data.from-map`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/template-data/from-map.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| from-map | Yes (2.8) | No | Yes (2.8) | No | No | No |

**`from-map`**

Input data in key-value format and return the parsed TemplateData object.

**Specifications:**

