'Populate an \'out\' AmpBox with strings encoded from an \'in\' dictionary
mapping names to Python values.
@param name: the argument name to retrieve
@type name: C{bytes}
@param strings: The AmpBox to write string(s) to, a mapping of
argument names to string values.
@type strings: AmpBox
@param objects: The dictionary to read object(s) from, a mapping of
names to Python objects. Keys should be native strings.
@type objects: dict
@param proto: the protocol we are converting for.
@type proto: AMP'

def toBox(self, name, strings, objects, proto):

    obj = self.retrieve(objects, _wireNameToPythonIdentifier(name), proto)
    if (self.optional and (obj is None)):
        pass
    else:
        strings[name] = self.toStringProto(obj, proto)
