logPartyActivity method
Future<PartyActivityV1?>
logPartyActivity(
- String? correlationId,
- PartyActivityV1 activity
override
Logs party activity.
correlation_id
(optional) transaction id to trace execution through call chain.activity
an activity to be logged. Return (optional) Future that receives logged activity or error.
Implementation
@override
Future<PartyActivityV1?> logPartyActivity(
String? correlationId, PartyActivityV1 activity) async {
var result = await callCommand(
'log_party_activity', correlationId, {'activity': activity});
if (result == null) return null;
var item = PartyActivityV1();
item.fromJson(json.decode(result));
return item;
}