Skip to content

Commit ee3e60b

Browse files
committed
refactor: use auto serializer
1 parent 803363b commit ee3e60b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ data class LiveInstrumentRemoved(
5252
)
5353

5454
fun toJson(): JsonObject {
55-
val json = JsonObject()
56-
json.put("liveInstrument", liveInstrument.toJson())
57-
json.put("occurredAt", occurredAt.toString())
58-
json.put("cause", cause?.toJson())
59-
return json
55+
return JsonObject.mapFrom(this)
6056
}
6157
}

0 commit comments

Comments
 (0)