fromObject method for protobuf
npm install from-protobuf-objectIn general that is opposite for 'toObject' method in protobufjs.
npm i from-protobuf-objecttypescript
import { fromProtobufObject } from 'from-protobuf-object';
import { MyMessage } from './my-message_pb';const myMessage = fromProtobufObject(MyMessage, {
keyOne: 1,
keyTwo: 'foo',
keyThree: {
keyA: 2,
keyB: 'bar',
},
});
``