toJson method

  1. @override
Map<String, Object?> toJson(
  1. BentoTheme value
)

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),
      ),
    ),
  };
}