Payload constructor

Payload({
  1. String? data,
  2. double? amount,
})

Implementation

Payload({String? data, double? amount}) {
  if (data != null) {
    this._data = data;
  }
  if (amount != null) {
    this._amount = amount;
  }
}