Package games.mythical.saga.sdk.util
Class ConversionUtils
- java.lang.Object
-
- games.mythical.saga.sdk.util.ConversionUtils
-
public class ConversionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConversionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>convertProperties(com.google.protobuf.Struct properties)static com.google.protobuf.StructconvertProperties(java.util.Map<java.lang.String,java.lang.Object> properties)static com.google.protobuf.TimestampinstantToProtoTimestamp(java.time.Instant instant)static java.time.InstantprotoTimestampToInstant(com.google.protobuf.Timestamp timestamp)static java.util.Map<java.lang.String,java.lang.Object>toStringObjectMap(java.lang.String stringObjectJson)
-
-
-
Method Detail
-
convertProperties
public static com.google.protobuf.Struct convertProperties(java.util.Map<java.lang.String,java.lang.Object> properties) throws SagaException- Throws:
SagaException
-
convertProperties
public static java.util.Map<java.lang.String,java.lang.Object> convertProperties(com.google.protobuf.Struct properties) throws SagaException- Throws:
SagaException
-
toStringObjectMap
public static java.util.Map<java.lang.String,java.lang.Object> toStringObjectMap(java.lang.String stringObjectJson) throws SagaException- Throws:
SagaException
-
protoTimestampToInstant
public static java.time.Instant protoTimestampToInstant(com.google.protobuf.Timestamp timestamp)
-
instantToProtoTimestamp
public static com.google.protobuf.Timestamp instantToProtoTimestamp(java.time.Instant instant)
-
-