@classmethod<EOL><INDENT>def get_fields(cls):<DEDENT>
fields = {}<EOL>for field_name in dir(cls):<EOL><INDENT>if isinstance(getattr(cls, field_name), Field):<EOL><INDENT>field = getattr(cls, field_name)<EOL>field_name = field.field_name or field_name<EOL>fields[field_name] = field<EOL><DEDENT><DEDENT>return fields<EOL>
Returns a dictionary of fields and field instances for this schema.