Another way to write equally valid way to write this is:

    return retrieveRawObject(sha, dataType).then((LooseObject object) {
      return GitObject.make(sha, objType, object.data);
    };