|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +title: ParsedField Class - Dynamsoft Capture Vision Flutter Edition |
| 4 | +description: The ParsedField class represents the result of a code parsing process. It provides access to the individual parsed items resulting from a document or an encrypted text. |
| 5 | +keywords: originalImageHashId, items, errorCode, ParsedField, api reference, barcode result, capture, flutter, code parser |
| 6 | +needAutoGenerateSidebar: true |
| 7 | +needGenerateH3Content: true |
| 8 | +breadcrumbText: ParsedField |
| 9 | +--- |
| 10 | + |
| 11 | +# ParsedField Class |
| 12 | + |
| 13 | +The `ParsedField` class represents a field from the [`ParsedResultItem`](parsed-result-item.md) output of an encrypted text coming from a document or a data source. It contains the parsed value along with its mapping and validation status. |
| 14 | + |
| 15 | +## Definition |
| 16 | + |
| 17 | +*Assembly:* dynamsoft_capture_vision_flutter |
| 18 | + |
| 19 | +```dart |
| 20 | +class ParsedField |
| 21 | +``` |
| 22 | + |
| 23 | +## Properties |
| 24 | + |
| 25 | +| Property | Type | Description | |
| 26 | +| -------- | ---- | ----------- | |
| 27 | +| [`value`](#value) | *String* | The processed value of the parsed field. | |
| 28 | +| [`rawValue`](#value) | *String* | The raw string value of the field as obtained from the source data. | |
| 29 | +| [`mappingStatus`](#mappingstatus) | [*EnumMappingStatus*](./enum/mapping-status.md) | A status representing whether the field was mapped from the source data or not. | |
| 30 | +| [`validationStatus`](#validationstatus) | [*EnumValidationStatus*](./enum/validation-status.md) | The status of a field's value after the internal validation checks. | |
| 31 | + |
| 32 | +### value |
| 33 | + |
| 34 | +The processed value of the parsed field. |
| 35 | + |
| 36 | +```dart |
| 37 | +String value; |
| 38 | +``` |
| 39 | + |
| 40 | +**Remarks** |
| 41 | + |
| 42 | +The processed value usually comes in handy when dealing with country codes. For example, if the passport is from Canada, the processed string value would be "Canada" while the raw string value is "CAN". |
| 43 | + |
| 44 | +### rawValue |
| 45 | + |
| 46 | +The raw string value of the field as obtained from the source data. |
| 47 | + |
| 48 | +```dart |
| 49 | +String rawValue; |
| 50 | +``` |
| 51 | + |
| 52 | +**Remarks** |
| 53 | + |
| 54 | +The processed value usually comes in handy when dealing with country codes. For example, if the passport is from Canada, the processed string value would be "Canada" while the raw string value is "CAN". |
| 55 | + |
| 56 | +### mappingStatus |
| 57 | + |
| 58 | +A status representing whether the field was mapped from the source data or not, represented as a [`EnumMappingStatus`](./enum/mapping-status.md). If the field was unsuccessful during the mapping process, the mappingStatus would be `EnumMappingStatus.failed`. |
| 59 | + |
| 60 | +```dart |
| 61 | +EnumMappingStatus mappingStatus; |
| 62 | +``` |
| 63 | + |
| 64 | +### validationStatus |
| 65 | + |
| 66 | +The status of a field's value after the internal validation checks, represented as a [`EnumValidationStatus`](./enum/validation-status.md). Once a field is parsed by the Code Parser, it is run through validation checks to make sure that the information is accurate and correct. If a field's value does not pass, the validationStatus would be `EnumValidationStatus.failed`. |
| 67 | + |
| 68 | +```dart |
| 69 | +String codeType; |
| 70 | +``` |
| 71 | + |
| 72 | +**Remarks** |
| 73 | + |
| 74 | +An example of a failed validation check is if the month of a birth date is April 31 for instance. Since that is anb invalid day, the date of birth field will be marked as invalid. The validation check does not compare the info of a parsed field against a database or anything of the kind in order to verify if the information is correct. |
0 commit comments