RecommendedChatFolders.fromJson constructor

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

Parse from a json

Implementation

factory RecommendedChatFolders.fromJson(Map<String, dynamic> json) =>
    RecommendedChatFolders(
      chatFolders: List<RecommendedChatFolder>.from(
          (json['chat_folders'] ?? [])
              .map((item) => RecommendedChatFolder.fromJson(item))
              .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );