PosDef constructor

PosDef({
  1. int? id,
  2. Poses? pos,
  3. String? def,
  4. SourceTypes? source,
  5. Iterable<PosDef_EntryWithExamples>? entries,
  6. Iterable<PosDef_Translation>? translation,
  7. int? wiktRank,
  8. bool? wnetTop5000,
  9. String? wnetId,
  10. Iterable<PosDef_TabTranslation>? wnetFromTabFile,
  11. int? wiktSenseId,
  12. int? wiktEtymologyId,
  13. Iterable<String>? wnetExamplesTodo,
})

Implementation

factory PosDef({
  $core.int? id,
  Poses? pos,
  $core.String? def,
  SourceTypes? source,
  $core.Iterable<PosDef_EntryWithExamples>? entries,
  $core.Iterable<PosDef_Translation>? translation,
  $core.int? wiktRank,
  $core.bool? wnetTop5000,
  $core.String? wnetId,
  $core.Iterable<PosDef_TabTranslation>? wnetFromTabFile,
  $core.int? wiktSenseId,
  $core.int? wiktEtymologyId,
  $core.Iterable<$core.String>? wnetExamplesTodo,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (pos != null) {
    _result.pos = pos;
  }
  if (def != null) {
    _result.def = def;
  }
  if (source != null) {
    _result.source = source;
  }
  if (entries != null) {
    _result.entries.addAll(entries);
  }
  if (translation != null) {
    _result.translation.addAll(translation);
  }
  if (wiktRank != null) {
    _result.wiktRank = wiktRank;
  }
  if (wnetTop5000 != null) {
    _result.wnetTop5000 = wnetTop5000;
  }
  if (wnetId != null) {
    _result.wnetId = wnetId;
  }
  if (wnetFromTabFile != null) {
    _result.wnetFromTabFile.addAll(wnetFromTabFile);
  }
  if (wiktSenseId != null) {
    _result.wiktSenseId = wiktSenseId;
  }
  if (wiktEtymologyId != null) {
    _result.wiktEtymologyId = wiktEtymologyId;
  }
  if (wnetExamplesTodo != null) {
    _result.wnetExamplesTodo.addAll(wnetExamplesTodo);
  }
  return _result;
}