GenericDocumentExtension extension
Extension function to GenericDocument to make it easier to access fields.
Methods
-
childByDocumentType(
String name) → GenericDocument? - Returns a sub-document given its document type name. Returns null if not found.
-
childrenByDocumentType(
String name) → List< GenericDocument> - Returns all children of generic document given its document type name. Returns null if not found.
-
fieldByTypeName(
String name) → Field? - Returns a field given its local or common type name. Returns null if not found.
-
fieldsByTypeName(
String name) → List< Field> - Returns all fields given a local or common field type name.