toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (constraints != null) "constraints": encodeValue(constraints),
if (display != null) "display": encodeValue(display),
if (subject != null) "subject": encodeValue(subject),
if (recipient != null) "recipient": encodeValue(recipient),
if (resource != null) "resource": encodeValue(resource),
if (requester != null) "requester": encodeValue(requester),
if (attempts != null) "attempts": encodeValue(attempts),
if (customData != null) "custom_data": encodeValue(customData),
if (expiresAt != null) "expires_at": encodeValue(expiresAt),
"purpose": encodeValue(purpose),
};