Gets a namedtuple class that matches the destination_names in the list of field_mappings.

def get_namedtuple(cls, field_mappings, name="Record"):
    """Gets a namedtuple class that matches the destination_names in the list of field_mappings."""
    return namedtuple(name, [fm.destination_name for fm in field_mappings])