toJson method
Implementation
@override
Map<String, Object?> toJson() => {
"content": encodeValue(content),
"created_at": encodeValue(createdAt),
if (customerIds != null) "customer_ids": encodeValue(customerIds),
if (email != null) "email": encodeValue(email),
"id": encodeValue(id),
if (idempotencyKey != null)
"idempotency_key": encodeValue(idempotencyKey),
if (purpose != null) "purpose": encodeValue(purpose),
"recipients": encodeValue(recipients),
"send_after": encodeValue(sendAfter),
"sender_id": encodeValue(senderId),
};