fromJson static method
Inherited by: ChatTypeBasicGroup ChatTypePrivate ChatTypeSecret ChatTypeSupergroup
Implementation
static ChatTypeSecret? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ChatTypeSecret(
secretChatId: (json['secret_chat_id'] as int?) ?? 0,
userId: (json['user_id'] as int?) ?? 0,
);
}