code: @Nullable
    public SoyType getFieldType(String fieldName) {
      FieldWithType field = fields.get(fieldName);
      return field != null ? field.getType() : null;
    }
docs: Returns the {@link SoyType} of the given field, or null if the field does not exist.