TemplateModule.fromMap constructor

TemplateModule.fromMap(
  1. Map map
)

Creates a template module from the provided map.

Implementation

factory TemplateModule.fromMap(Map<dynamic, dynamic> map) {
  return TemplateModule(
    description: map['description']?.toString() ?? '',
  );
}