fromJsonList static method

List<Note> fromJsonList(
  1. List notes
)

Implementation

static List<Note> fromJsonList(List notes) => notes
    .map((n) => n is Map<String, dynamic> ? Note.fromJson(n) : null)
    .whereType<Note>()
    .toList();