WidgetbookThemeData.fromMap constructor

WidgetbookThemeData.fromMap(
  1. Map<String, dynamic> map
)

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