toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    ...super.toMap(),
    'params': {
      if (paymentHash != null) 'payment_hash': paymentHash,
      if (invoice != null) 'invoice': invoice,
    }
  };
}