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