SessionDescription.fromData constructor
Implementation
SessionDescription.fromData(Map<String,dynamic> data) {
sdp = BaseEntity.stringValue(data, "sdp");
final typeString = BaseEntity.stringValue(data, "type");
switch (typeString) {
case 'offer':
type = SdpType.offer;
case 'answer':
type = SdpType.answer;
case 'prAnswer':
type = SdpType.prAnswer;
}
}