Announcement.fromRawJson constructor Null safety

Announcement.fromRawJson(
  1. String str
)

Implementation

factory Announcement.fromRawJson(String str) =>
    Announcement.fromJson(json.decode(str) as Map<String, dynamic>);