fromMap method

  1. @override
PromoRewardDiscount fromMap(
  1. Map map
)
inherited

/// To implement ////// Decodes model from Map

Implementation

@override
PromoRewardDiscount fromMap(Map map) {
  if (map == null) return null;
  final obj = PromoRewardDiscount(
      amount: map['amount'] as num ?? getJserDefault('amount'),
      isPercentage:
          map['isPercentage'] as bool ?? getJserDefault('isPercentage'));
  return obj;
}