Message.fromJson constructor Null safety

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

Construct class from Map of String and dynamic type

Implementation

Message.fromJson(Map<String, dynamic> json)
    : user = json['user'],
      msg = json['msg'];