ResultResponse.fromJson constructor
ResultResponse.fromJson(
- dynamic json
Implementation
ResultResponse.fromJson(dynamic json) {
chat = json['chat'] != null ? Chat.fromJson(json['chat']) : null;
if (json['chats'] != null) {
chats = [];
json['chats'].forEach((v) {
chats?.add(Chat.fromJson(v));
});
chat = json['chat'] != null ? Chat.fromJson(json['chat']) : null;
}
}