populateCommonFields method
void
populateCommonFields(
- dynamic map
Implementation
void populateCommonFields(dynamic map) {
_type = PdfFormFieldTypes.values.firstWhere((element) =>
element.nativeName == map['type'] || element.name == map['type']);
_name = map['name'];
_alternativeFieldName = map['alternateFieldName'] ?? map['label'];
_fullyQualifiedName = map['fullyQualifiedName'] ?? map['name'];
_isReadOnly = map['isReadOnly'] ?? map['readOnly'];
_isRequired = map['isRequired'] ?? map['required'];
_isExported = map['isNoExport'] ?? map['noExport'];
_isDirty = map['isDirty'] ?? false;
}