toJson method
Converts an AffiliateInfo object to JSON.
Implementation
Map<String, dynamic> toJson() {
return {
'affiliate_user': affiliateUser?.toJson(),
'affiliate_chat': affiliateChat?.toJson(),
'commission_per_mille': commissionPerMille,
'amount': amount,
'nanostar_amount': nanostarAmount,
}..removeWhere(_nullFilter);
}