toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"externalId": externalId,
"groupId": groupId,
"trustedImage": _bytesToBase64(trustedImage),
"trustedImageUrl": trustedImageUrl,
}.clearNulls();