Participants.fromJson constructor

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

Implementation

Participants.fromJson(Map<String, dynamic> json) {
  uid = json['uid'];
  if (json['totalAudioMinutes'] != null) {
    totalAudioMinutes = json['totalAudioMinutes'].toDouble();
  }
  if (json['totalVideoMinutes'] != null) {
    totalVideoMinutes = json['totalVideoMinutes'].toDouble();
  }
  if (json['totalDurationInMinutes'] != null) {
    totalDurationInMinutes = json['totalDurationInMinutes'].toDouble();
  }
  deviceId = json['deviceId'];
  isJoined = json['isJoined'];
  if (json['joinedAt'] != null) joinedAt = json['joinedAt'];
  mid = json['mid'];
  state = json['state'];
  if (json['leftAt'] != null) leftAt = json['leftAt'];
  name = json['name'];
  avatar = json['avatar'];
}