in src-csharp/TextractExtensions.cs [450:473]
public Field(Block block, List<Block> blocks) {
var relationships = block.Relationships;
if(relationships != null && relationships.Count > 0) {
relationships.ForEach(r => {
if(r.Type == "CHILD") {
this.Key = new FieldKey(block, r.Ids, blocks);
} else if(r.Type == "VALUE") {
r.Ids.ForEach(id => {
var v = blocks.Find(b => b.Id == id);
if(v.EntityTypes.Contains("VALUE")) {
var vr = v.Relationships;
if(vr != null && vr.Count > 0) {
vr.ForEach(vc => {
if(vc.Type == "CHILD") {
this.Value = new FieldValue(v, vc.Ids, blocks);
}
});
}
}
});
}
});
}
}