toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
...super.toMap(),
'params': {
'amount': amountSat * 1000,
if (description != null) 'description': description,
if (descriptionHash != null) 'description_hash': descriptionHash,
if (expiry != null) 'expiry': expiry,
}
};
}