fromJson static method

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

Implementation

static ChatLists? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ChatLists(
    chatLists: List<ChatList>.from(
      tdListFromJson(json['chat_lists'])
          .map((item) => ChatList.fromJson(tdMapFromJson(item)))
          .whereType<ChatList>(),
    ),
  );
}