toMap method

  1. @override
Map<String, dynamic> toMap(
  1. PromoRewardDiscount model
)
inherited

Encodes model to Map

Implementation

@override
Map<String, dynamic> toMap(PromoRewardDiscount model) {
  if (model == null) return null;
  Map<String, dynamic> ret = <String, dynamic>{};
  setMapValueIfNotNull(ret, 'amount', model.amount);
  setMapValueIfNotNull(ret, 'isPercentage', model.isPercentage);
  return ret;
}