UserFullInfo.fromMap constructor
UserFullInfo.fromMap(
- Map<String, dynamic> map
)
Implementation
UserFullInfo.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['personal_photo'] != null) {
personal_photo = TdApiMap.fromMap(map['personal_photo']) as ChatPhoto;
}
if (map['photo'] != null) {
photo = TdApiMap.fromMap(map['photo']) as ChatPhoto;
}
if (map['public_photo'] != null) {
public_photo = TdApiMap.fromMap(map['public_photo']) as ChatPhoto;
}
is_blocked = map['is_blocked'];
can_be_called = map['can_be_called'];
supports_video_calls = map['supports_video_calls'];
has_private_calls = map['has_private_calls'];
has_private_forwards = map['has_private_forwards'];
has_restricted_voice_and_video_note_messages = map['has_restricted_voice_and_video_note_messages'];
need_phone_number_privacy_exception = map['need_phone_number_privacy_exception'];
if (map['bio'] != null) {
bio = TdApiMap.fromMap(map['bio']) as FormattedText;
}
if (map['premium_gift_options'] != null) {
premium_gift_options = [];
for (var someValue in map['premium_gift_options']) {
if (someValue != null) {
premium_gift_options?.add(TdApiMap.fromMap(someValue) as PremiumPaymentOption);
}
}
}
group_in_common_count = map['group_in_common_count'];
if (map['bot_info'] != null) {
bot_info = TdApiMap.fromMap(map['bot_info']) as BotInfo;
}
}