Serializer
class Serializer
Collection of methods to help with serialization of protobuf objects
Methods
__construct($fieldTransformers = [], $messageTypeTransformers = [])
No description
encodeMessage(Message $message)
No description
decodeMessage(Message $message, $data)
No description
static string
serializeToJson(Message $message)
No description
static string
serializeToPhpArray(Message $message)
No description
static array
decodeMetadata($metadata)
Decode metadata received from gRPC status object
static
toSnakeCase($key)
No description
static
toCamelCase($key)
No description
Details
at line 63
__construct($fieldTransformers = [], $messageTypeTransformers = [])
at line 69
encodeMessage(Message $message)
at line 77
decodeMessage(Message $message, $data)
at line 89
static string
serializeToJson(Message $message)
at line 98
static string
serializeToPhpArray(Message $message)
at line 108
static array
decodeMetadata($metadata)
Decode metadata received from gRPC status object