ChatUser.fromJson constructor
Implementation
factory ChatUser.fromJson(Map<String, dynamic> json) => ChatUser(
id: json["id"],
name: json["name"],
profilePhoto: json["profilePhoto"],
imageType: ImageType.tryParse(json['imageType']?.toString()) ??
ImageType.network,
defaultAvatarImage: json["defaultAvatarImage"],
);