ModuleFile.fromMap constructor

ModuleFile.fromMap(
  1. Map map
)

Creates a module file configuration from the provided map.

Implementation

factory ModuleFile.fromMap(Map<dynamic, dynamic> map) {
  return ModuleFile(
    template: map['template'].toString(),
    output: map['output'].toString(),
    when: map['when']?.toString(),
  );
}