NewChat.fromJson constructor

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

Implementation

factory NewChat.fromJson(Map<String, dynamic> json) {
  return NewChat(json['contactId'], Chat.fromJson(json['model']));
}