Searched refs:protoObj (Results 1 – 1 of 1) sorted by relevance
495 function modifyProtoFields(protoObj, displayDefaults) { argument496 if (!protoObj || protoObj !== Object(protoObj) || !protoObj.$type) {500 for (const fieldName in protoObj.$type.fields) {501 if (protoObj.$type.fields.hasOwnProperty(fieldName)) {502 const fieldProperties = protoObj.$type.fields[fieldName];503 const field = protoObj[fieldName];513 protoObj[fieldName] = fieldProperties.defaultValue;517 … protoObj[fieldName] = fieldProperties.resolvedType.valuesById[protoObj[fieldProperties.name]];520 modifyProtoFields(protoObj[fieldName], displayDefaults);