toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> result = <String, dynamic>{};
if (referenceTaskUid?.isNotEmpty == true) result.putIfAbsent('"referenceTaskUid"', () => '"$referenceTaskUid"');
if (referenceDocUid?.isNotEmpty == true) result.putIfAbsent('"referenceDocUid"', () => '"$referenceDocUid"');
if (taskUid?.isNotEmpty == true) result.putIfAbsent('"taskUid"', () => '"$taskUid"');
if (documentUid?.isNotEmpty == true) result.putIfAbsent('"documentUid"', () => '"$documentUid"');
if (folderUid?.isNotEmpty == true) result.putIfAbsent('"folderUid"', () => '"$folderUid"');
if (livenessStatus != null) result.putIfAbsent('"livenessStatus"', () => '"${livenessStatus!.name()}"');
if (attachmentTaskUids?.isNotEmpty == true) result.putIfAbsent('"attachmentTaskUids"', () => getJsonArray(attachmentTaskUids!));
if (attachmentDocumentUids?.isNotEmpty == true) result.putIfAbsent('"attachmentDocumentUids"', () => getJsonArray(attachmentDocumentUids!));
return result;
}