MessageDeliveredStatus.fromJson constructor
Implementation
factory MessageDeliveredStatus.fromJson(
Map<String, dynamic> json, String type) =>
MessageDeliveredStatus(
deliveredCount: json["deliveredCount"],
totalParticipatCount: json["totalParticipatCount"],
participantList: type == "delivered"
? List<DeliveredParticipantList>.from(
json["deliveredParticipantList"]
.map((x) => DeliveredParticipantList.fromJson(x)))
: List<DeliveredParticipantList>.from(json["seenParticipantList"]
.map((x) => DeliveredParticipantList.fromJson(x))),
);