isChainedCustomDocument method
Implementation
bool isChainedCustomDocument(Map<String, dynamic>? document) {
if (document == null) {
return false;
}
final previousDocumentKey = document['previousDocumentKey'];
return document['enableDocumentChain'] == true &&
previousDocumentKey is String &&
previousDocumentKey.isNotEmpty;
}