toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'uid': uid,
'referralCode': referralCode,
'isGlobalSalesPool': isGlobalSalesPool,
'isFounder': isFounder,
'isCorporate': isCorporate,
'wallet': wallet,
'founderShares': founderShares,
'parentId': parentId,
'createdAt': createdAt?.toIso8601String(),
'updatedAt': updatedAt?.toIso8601String(),
'paymentAddress': paymentAddress,
'paymentAddressLinked': paymentAddressLinked,
'neoMilesWallet': neoMilesWallet,
'rank': rank,
'user': user?.toJson(),
'subscriptions': subscriptions?.map((x) => x.toJson()).toList(),
};
}