Gedcom7Structure.from constructor

Gedcom7Structure.from(
  1. GedcomStructure structure
)

Parses GEDCOM 7 Structure from any GedcomStructure.

Implementation

factory Gedcom7Structure.from(GedcomStructure structure) {
  return Gedcom7Structure.parse(
    level: structure.level,
    tag: structure.tag,
    xref: structure.xref,
    lineVal: structure.lineVal,
    substructures: structure.substructures,
  );
}