toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (discountMessage != null) 'discountMessage': discountMessage!,
      if (faceValue != null) 'faceValue': faceValue!,
      if (purchasePrice != null) 'purchasePrice': purchasePrice!,
    };