Note.fromJson constructor Null safety

Note.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Note.fromJson(Map<String, dynamic> json) =>
    Note((json['note'] as String?) ?? '');