toJson method
override
The wire shape, including kind.
Implementation
@override
Json toJson() => compact({
'kind': kind,
'id': id,
'conversation_id': conversationId,
'seq': seq,
'type': type,
'actor_type': actorType.code,
'actor_id': actorId,
'data': data,
'created_at': createdAt.toUtc().toIso8601String(),
});