UpdateChatThemes.fromJson constructor

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

Parse from a json

Implementation

factory UpdateChatThemes.fromJson(Map<String, dynamic> json) =>
    UpdateChatThemes(
      chatThemes: List<ChatTheme>.from((json['chat_themes'] ?? [])
          .map((item) => ChatTheme.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );