Write a function that maps an Anchor account result to a plain object. The function receives a publicKey string, courseId string, and lessonCount number, and returns a JSON string with those fields plus isEnrolled: false.
Loading editor...