UserFullInfo.fromJson constructor
Parses a UserFullInfo from TDLib JSON.
Implementation
factory UserFullInfo.fromJson(Map<String, dynamic> json) => UserFullInfo(
personalPhoto:
_readOptional(json['personal_photo'], ChatPhoto.fromJson),
photo: _readOptional(json['photo'], ChatPhoto.fromJson),
publicPhoto: _readOptional(json['public_photo'], ChatPhoto.fromJson),
blockList: _readOptional(json['block_list'], BlockList.fromJson),
canBeCalled: _readBool(json['can_be_called']),
supportsVideoCalls: _readBool(json['supports_video_calls']),
hasPrivateCalls: _readBool(json['has_private_calls']),
hasPrivateForwards: _readBool(json['has_private_forwards']),
hasRestrictedVoiceAndVideoNoteMessages:
_readBool(json['has_restricted_voice_and_video_note_messages']),
hasPinnedStories: _readBool(json['has_pinned_stories']),
needPhoneNumberPrivacyException:
_readBool(json['need_phone_number_privacy_exception']),
setChatBackground: _readBool(json['set_chat_background']),
bio: _readOptional(json['bio'], FormattedText.fromJson),
premiumGiftOptions: _readList<PremiumPaymentOption>(
json['premium_gift_options'],
(e) => _readObject(e, PremiumPaymentOption.fromJson)),
groupInCommonCount: _readInt(json['group_in_common_count']),
businessInfo:
_readOptional(json['business_info'], BusinessInfo.fromJson),
botInfo: _readOptional(json['bot_info'], BotInfo.fromJson),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);