public override void FromDictionary(IDictionary dict) { _type = (RegularDataType)dict["type"]; _payload = dict["payload"] as byte[]; }