fromJson static method
Implementation
static BusinessConnection? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return BusinessConnection(
id: (json['id'] as String?) ?? '',
userId: (json['user_id'] as int?) ?? 0,
userChatId: (json['user_chat_id'] as int?) ?? 0,
date: (json['date'] as int?) ?? 0,
rights: BusinessBotRights.fromJson(tdMapFromJson(json['rights'])),
isEnabled: (json['is_enabled'] as bool?) ?? false,
);
}