SessionDescription.fromData constructor

SessionDescription.fromData(
  1. Map<String, dynamic> data
)

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;
  }
}