PeerData.fromJson constructor

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

Implementation

factory PeerData.fromJson(Map<String, dynamic> json) {
  return PeerData(
    audio: json['audio'],
    video: json['video'],
    address: json['address'],
    status: _parseVideoCallStatus(json['status']),
    retryCount: json['retryCount'],
  );
}