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