UserFullInfo.fromJson constructor

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

Parse from a json

Implementation

factory UserFullInfo.fromJson(Map<String, dynamic> json) => UserFullInfo(
  photo: json['photo'] == null ? null : ChatPhoto.fromJson(json['photo']),
  isBlocked: json['is_blocked'],
  canBeCalled: json['can_be_called'],
  supportsVideoCalls: json['supports_video_calls'],
  hasPrivateCalls: json['has_private_calls'],
  hasPrivateForwards: json['has_private_forwards'],
  needPhoneNumberPrivacyException: json['need_phone_number_privacy_exception'],
  bio: json['bio'],
  shareText: json['share_text'],
  description: json['description'],
  groupInCommonCount: json['group_in_common_count'],
  commands: List<BotCommand>.from((json['commands'] ?? []).map((item) => BotCommand.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);