def encode(self, flash):
        return json.dumps(flash.to_dict())
Encodes the given *flash* as a JSON string.
dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/codec/json_impl.py/CodecClass.encode