                  ret[field_name] = declared_fields[field_name]
                  continue
  
              # Determine the serializer field class and keyword arguments.
              field_cls, kwargs = self.build_field(field_name, info, model, depth)
  
              # Populate any kwargs defined in `Meta.extra_kwargs`
              kwargs = self.build_field_kwargs(kwargs, extra_kwargs, field_name)
  
              # Create the serializer field.
 
</s> remove             # Populate any kwargs defined in `Meta.extra_kwargs`
            kwargs = self.build_field_kwargs(kwargs, extra_kwargs, field_name)
 </s> add             # Include any kwargs defined in `Meta.extra_kwargs`
            field_kwargs = self.build_field_kwargs(
                field_kwargs, extra_kwargs, field_name
            ) </s> remove             ret[field_name] = field_cls(**kwargs)
 </s> add             fields[field_name] = field_class(**field_kwargs) </s> remove                 # Field is explicitly declared on the class, use that.
                ret[field_name] = declared_fields[field_name]
 </s> add                 fields[field_name] = declared_fields[field_name] </s> remove         ret.update(hidden_fields)
 </s> add         fields.update(hidden_fields)
            field_class, field_kwargs = self.build_field(
                field_name, info, model, depth
            )
                  ret[field_name] = declared_fields[field_name]
                  continue
  
              # Determine the serializer field class and keyword arguments.
            field_class, field_kwargs = self.build_field(
                field_name, info, model, depth
            )
  
              # Populate any kwargs defined in `Meta.extra_kwargs`
              kwargs = self.build_field_kwargs(kwargs, extra_kwargs, field_name)
  
              # Create the serializer field.
keep keep keep keep replace keep keep keep keep keep
 Final bits of docs for ModelSerializer fields API 
rest_framework/serializers.py