1use super::{Component, Node, Style};
2use indexmap::IndexMap;
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Deserialize, Serialize)]
6#[serde(rename_all = "camelCase")]
7#[typeshare::typeshare]
8pub struct File {
9 pub document: Node,
10 #[typeshare(serialized_as = "std::collections::HashMap<String, Component>")]
11 pub components: IndexMap<String, Component>,
12 #[typeshare(serialized_as = "std::collections::HashMap<String, Style>")]
13 pub styles: IndexMap<String, Style>,
14 pub name: String,
15 pub schema_version: u8,
16 pub version: String,
17}