public FieldKey()

in src-csharp/TextractExtensions/FieldKey.cs [58:83]


		public FieldKey(Block block, List<string> children, Dictionary<string, Block> blocks) {
			this.Block = block;
			this.Confidence = block.Confidence;
			this.Geometry = block.Geometry;
			this.Id = block.Id;
			this.Text = string.Empty;
			this.Content = new List<dynamic>();

			var words = new List<string>();

			if(children != null && children.Count > 0) {
				children.ForEach(c => {
					var wordBlock = blocks[c];
					if(wordBlock.BlockType == "WORD") {
						var w = new Word(wordBlock, blocks);
						this.Content.Add(w);
						words.Add(w.Text);
					}
				});
			}

			if(words.Count > 0) {
				this.Text = string.Join(" ", words);
			}

		}