'Convert to dictionary which will be rendered as JSON.'

def to_dict(self):

    d = super(Field, self).to_dict()
    d.update(src=self.src)
    if (self.dst is not None):
        d.update(dst=self.dst)
    return d
