WidgetbookThemeData.fromMap constructor
transforms the serializable map into a WidgetbookThemeData object.
Implementation
factory WidgetbookThemeData.fromMap(Map<String, dynamic> map) {
return WidgetbookThemeData(
name: map['name'] as String,
importStatement: map['importStatement'] as String,
dependencies: List<String>.from(map['dependencies'] as Iterable),
isDarkTheme: map['isDarkTheme'] as bool,
);
}