toJson method
Converts a TransactionPartnerUser object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.toJson(),
'user': user.toJson(),
'invoice_payload': invoicePayload,
'paid_media': paidMedia?.map((e) => e.toJson()).toList(),
'paid_media_payload': paidMediaPayload,
'subscription_period': subscriptionPeriod,
'gift': gift?.toJson(),
'affiliate': affiliate?.toJson(),
}..removeWhere(_nullFilter);
}