ChatUser.fromJson constructor

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

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"],
    );