fromJson static method

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

Implementation

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

  return RecommendedChatFolders(
    chatFolders: List<RecommendedChatFolder>.from(
      tdListFromJson(json['chat_folders'])
          .map((item) => RecommendedChatFolder.fromJson(tdMapFromJson(item)))
          .whereType<RecommendedChatFolder>(),
    ),
  );
}