parseSDP method

Map<String, dynamic>? parseSDP({
  1. bool force = false,
})

Parse the current body as a SDP and store the resulting object into sdp. -param {Boolean} force: Parse even if sdp already exists.

Returns sdp.

Implementation

Map<String, dynamic>? parseSDP({bool force = false}) {
  if (!force && sdp != null) {
    return sdp;
  } else {
    sdp = sdp_transform.parse(body ?? '');
    return sdp;
  }
}