@classmethod<EOL><INDENT>def _write_to_file(cls, create_if_missing=False):<DEDENT>
file_name = cls._backing_file(create_if_missing)<EOL>if file_name:<EOL><INDENT>with open(file_name, "<STR_LIT>") as dict_file:<EOL><INDENT>json.dump(cls._mock_elastic, dict_file, cls=DjangoJSONEncoder)<EOL><DEDENT><DEDENT>
write the index dict to the backing file