We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This seems to be related to #99 but applies to Google "wrapper" types. For example, the following message:
message MyMessage { map<int64, google.protobuf.StringValue> map_of_stringvalues = 1; }
Produces output that uses string.fromJSON and string.fromPartial
string.fromJSON
string.fromPartial
fromJSON(object: any): MyMessage { const message = { ...baseMyMessage } as MyMessage; message.mapOfStringvalues = {}; if (object.mapOfStringvalues !== undefined && object.mapOfStringvalues !== null) { Object.entries(object.mapOfStringvalues).forEach(([key, value]) => { message.mapOfStringvalues[Number(key)] = string.fromJSON(value); }) } return message; }, fromPartial(object: DeepPartial<MyMessage>): MyMessage { const message = { ...baseMyMessage } as MyMessage; message.mapOfStringvalues = {}; if (object.mapOfStringvalues !== undefined && object.mapOfStringvalues !== null) { Object.entries(object.mapOfStringvalues).forEach(([key, value]) => { if (value !== undefined) { message.mapOfStringvalues[Number(key)] = string.fromPartial(value); } }) } return message; }
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 1.83.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Nice, thanks @aikoven !
chore(sdk): make npm happy with module alias (stephenh#182)
08f7f62
Successfully merging a pull request may close this issue.
This seems to be related to #99 but applies to Google "wrapper" types. For example, the following message:
Produces output that uses
string.fromJSON
andstring.fromPartial
The text was updated successfully, but these errors were encountered: