
선생님이 작성하신 해설 코드와 동일하게 작성을 한 상황인데 runtime 에러가 지속적으로 나요

class Memo {
Memo({
required this.content,
this.isPinned = false,
});
String content;
bool isPinned;
Map toJson() {
return {
'content': content,
'isPinned': isPinned,
};
}
factory Memo.fromJson(json) {
return Memo(
content: json['content'],
isPinned: json['isPinned'] ?? false,
);
}
}
