Skip to content

Commit 8fc3dd3

Browse files
committed
refactor: toJson
1 parent 5b6b782 commit 8fc3dd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/spp/protocol/instrument/event/LiveInstrumentEvent.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ data class LiveInstrumentEvent(
3232
LiveInstrumentEventType.valueOf(json.getString("eventType")),
3333
json.getString("data")
3434
)
35+
36+
fun toJson(): JsonObject {
37+
return JsonObject.mapFrom(this)
38+
}
3539
}

0 commit comments

Comments
 (0)