code: static List<CDARichMark> resolveMarks(List<Map<String, Object>> rawMarks) {
      final List<CDARichMark> marks = new ArrayList<>(rawMarks.size());
      for (final Map<String, Object> rawMark : rawMarks) {
        final String type = (String) rawMark.get("type");
        if ("bold".equals(type)) {
          marks.add(new CDARichMark.CDARichMarkBold());
        } else if ("italic".equals(type)) {
          marks.add(new CDARichMark.CDARichMarkItalic());
        } else if ("underline".equals(type)) {
          marks.add(new CDARichMark.CDARichMarkUnderline());
        } else if ("code".equals(type)) {
          marks.add(new CDARichMark.CDARichMarkCode());
        } else {
          marks.add(new CDARichMark.CDARichMarkCustom(type));
        }
      }
      return marks;
    }
docs: Specific method for resolving rich text marks.
  
  @param rawMarks the json responded map from Contentful
  @return objectified and parsed objects.