SeedSection.fromMap constructor

SeedSection.fromMap(
  1. Map<String, Object?> map
)

Creates the section from a YAML map.

Implementation

factory SeedSection.fromMap(Map<String, Object?> map) => SeedSection(
  directory: map['directory']?.toString() ?? '',
  registry: map['registry']?.toString() ?? '',
  seedNames: (map['seed_names'] as List?)
      ?.map((entry) => entry.toString())
      .toList(),
);