UserWithPhoto.fromJson constructor
UserWithPhoto.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UserWithPhoto.fromJson(Map<String, dynamic> json) {
return UserWithPhoto(
userId: json['user_id'] as int,
name: json['name'] as String,
username: json['username'] as String?,
isBot: json['is_bot'] as bool,
lastActivityTime: json['last_activity_time'] as int,
description: json['description'] as String?,
avatarUrl: json['avatar_url'] as String?,
fullAvatarUrl: json['full_avatar_url'] as String?,
);
}