toJson method

Map<String, Object?> toJson()

Serializes the appearance configuration to a JSON-compatible map.

Implementation

Map<String, Object?> toJson() {
  return <String, Object?>{
    if (variables != null) 'variables': variables,
    if (rules != null) 'rules': rules,
    if (fonts != null) 'fonts': fonts,
  };
}