Map<String, dynamic> toMap() { return <String, dynamic>{ 'spendBasis': ?spendBasis, 'thresholdPercent': thresholdPercent, }; }