toJson method
Implementation
@override
Map<String, Object?> toJson(BentoTheme value) {
return {
...Map.fromEntries(
value.children.map((child) => MapEntry(child.name, toJson(value)))),
...Map.fromEntries(
value.tokens.map(
(token) => const DesignTokenConverter().toJson(token),
),
),
};
}