OsmNoteComment.fromJson constructor

OsmNoteComment.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory OsmNoteComment.fromJson(Map<String, dynamic> data) {
  return OsmNoteComment(
    author: data['author'],
    message: data['message'],
    date: DateTime.fromMillisecondsSinceEpoch(data['date']),
    isNew: data['isNew'],
  );
}