def METHOD_NAME(cls, changeid, master, chdict):
    change = cls(None, None, None, _fromChdict=True)
    change.who = chdict['author']
    change.committer = chdict['committer']
    change.comments = chdict['comments']
    change.revision = chdict['revision']
    change.branch = chdict['branch']
    change.category = chdict['category']
    change.revlink = chdict['revlink']
    change.repository = chdict['repository']
    change.codebase = chdict['codebase']
    change.project = chdict['project']
    change.number = chdict['changeid']
    when = chdict['when_timestamp']
    if when:
        when = datetime2epoch(when)
    change.when = when
    change.files = sorted(chdict['files'])
    change.properties = Properties()
    for n, (v, s) in chdict['properties'].items():
        change.properties.setProperty(n, v, s)
    return defer.succeed(change)