async def dump_message(obj, msg, field_archiver=None):
mtype = msg.__class__<EOL>fields = mtype.f_specs()<EOL>obj = collections.OrderedDict() if obj is None else get_elem(obj)<EOL>for field in fields:<EOL><INDENT>await dump_message_field(obj, msg=msg, field=field, field_archiver=field_archiver)<EOL><DEDENT>return obj<EOL>
Dumps message to the object.
Returns message popo representation.

:param obj:
:param msg:
:param field_archiver:
:return: