extractReferer method

String extractReferer(
  1. String responseData
)

Implementation

String extractReferer(String responseData) {
  final Map<String, dynamic> parsedData = jsonDecode(responseData);
  final List<dynamic> referers = parsedData['configs']['referrers'];
  if (referers.isNotEmpty) {
    return referers[0];
  }
  return '';
}