toJson method

Map<String, String?> toJson()

Implementation

Map<String, String?> toJson() {
  var map = {_idKey: id, _ratioKey: transactionSplitRatio};
  if (!isEmpty(transactionChargeType)) {
    map[_chargeTypeKey] = transactionChargeType!;
  }

  if (!isEmpty(transactionCharge)) {
    map[_chargeKey] = transactionCharge!;
  }
  return map;
}