toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (attemptId != null) "attempt_id": encodeValue(attemptId),
"by": encodeValue(by),
if (channel != null) "channel": encodeValue(channel),
if (resourceId != null) "resource_id": encodeValue(resourceId),
if (resourceType != null) "resource_type": encodeValue(resourceType),
"supplied_at": encodeValue(suppliedAt),
};