ChatTypeSecret.fromJson constructor

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

Parses a ChatTypeSecret from TDLib JSON.

Implementation

factory ChatTypeSecret.fromJson(Map<String, dynamic> json) => ChatTypeSecret(
      secretChatId: _readInt(json['secret_chat_id']),
      userId: _readInt(json['user_id']),
    );