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