toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"id": encodeValue(id),
"recipient": encodeValue(recipient),
"sent_via": encodeValue(sentVia),
"token_size": encodeValue(tokenSize),
"sender_id": encodeValue(senderId),
if (status != null) "status": encodeValue(status),
};