patch method
Implementation
void patch(Map? _data) {
if (_data == null) return;
dir = _data['dir'] ?? dir;
generators = _data['generators']
?.map((i) => GeneratorConfig.fromMap(i))
.toList()
.cast<GeneratorConfig>() ??
[];
}