Note.fromJson constructor
Implementation
Note.fromJson(Map<String, dynamic> note)
: id = note.getIntOrNull("id"),
type = note.getStringOrNull("type"),
body = note.getStringOrNull("body"),
author = Author.fromJson(note.getJsonMap("author")),
createdAt = note.getISODateTimeOrNull("created_at"),
updatedAt = note.getISODateTimeOrNull("updated_at"),
isSystemNote = note.getBoolOrNull("system"),
noteableId = note.getIntOrNull("noteable_id"),
noteableType = note.getStringOrNull("noteable_type"),
noteableIid = note.getIntOrNull("noteable_iid");