Beamable SDK
Classes | Public Types | Static Public Member Functions | List of all members
Beamable.Serialization.JsonSerializable Class Reference

Classes

class  DeleteStream
 
interface  IDeletable
 
interface  IDeleteListener
 
interface  ISerializable
 
interface  ISerializableFactory
 
interface  ISerializeIdentifiable
 
interface  IStreamSerializer
 
class  JsonSaveStream
 Class JsonSaveStream is an IStreamSerializer for JsonSerializable Provides serialization of ISerializable objects to json strings More...
 
class  LoadStream
 Class LoadStream is an IStreamSerializer for JsonSerializable Provides deserialization of Dictionary(string, object) into ISerializable objects More...
 
class  SaveStream
 Class SaveStream is an IStreamSerializer for JsonSerializable Provides serialization of ISerializable objects to Dictionary(string, object) More...
 

Public Types

enum  ListMode {
  kMerge = 0 , kReplace , kRead , kDelete ,
  kSoftReplace
}
 

Static Public Member Functions

static int FixAOTCompileIssues ()
 
static void Deserialize (ISerializable obj, IDictionary< string, object > data, ListMode mode=ListMode.kReplace)
 
static T FromJson< T > (string json)
 Deserializes a JSON string into an ISerializable object More...
 
static void Delete (ISerializable obj, IDictionary< string, object > data)
 
static Dictionary< string, object > Serialize (ISerializable obj)
 
static string ToJson (ISerializable obj)
 
static string ToSmallerJson (ISerializable obj)
 
static bool IsPartial (IDictionary< string, object > dict)
 

Member Function Documentation

◆ FromJson< T >()

static T Beamable.Serialization.JsonSerializable.FromJson< T > ( string  json)
inlinestatic

Deserializes a JSON string into an ISerializable object

Template Parameters
T
Parameters
json
Returns
Type Constraints
T :ISerializable 
T :new() 

The documentation for this class was generated from the following files: