fromJson static method

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

Implementation

static GroupCallParticipants? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return GroupCallParticipants(
    totalCount: (json['total_count'] as int?) ?? 0,
    participantIds: List<MessageSender>.from(
      tdListFromJson(json['participant_ids'])
          .map((item) => MessageSender.fromJson(tdMapFromJson(item)))
          .whereType<MessageSender>(),
    ),
  );
}