Map<String, dynamic> toWire() => { 'event_id': eventId, 'command_id': commandId, 'kind': kind.wire, 'generation': generation, 'detail': detail, };