Jordan Haven
03/22/2023, 4:07 PMpublic data class MyResult(code: String)
public fun MyResult.toWritableNativeMap() = WritableNativeMap().apply {
putString("result", code)
}
ephemient
03/22/2023, 4:09 PMUse Arguments.createMap() if you need to stub out creating this class in a test.
Jordan Haven
03/22/2023, 4:10 PM