factory SDPStreamMetadata.fromJson(Map<String, dynamic> json) => SDPStreamMetadata(json.map( (key, value) => MapEntry(key, SDPStreamPurpose.fromJson(value))));