patch method

void patch(
  1. Map? _data
)

Implementation

void patch(Map? _data) {
  if (_data == null) return;

  dir = _data['dir'] ?? dir;
  generators = _data['generators']
          ?.map((i) => GeneratorConfig.fromMap(i))
          .toList()
          .cast<GeneratorConfig>() ??
      [];
}