PosDef constructor
PosDef({
- int? id,
- Poses? pos,
- String? def,
- SourceTypes? source,
- Iterable<
PosDef_EntryWithExamples> ? entries, - Iterable<
PosDef_Translation> ? translation, - int? wiktRank,
- bool? wnetTop5000,
- String? wnetId,
- Iterable<
PosDef_TabTranslation> ? wnetFromTabFile, - int? wiktSenseId,
- int? wiktEtymologyId,
- 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;
}