UrlSchemeData.fromMap constructor

UrlSchemeData.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory UrlSchemeData.fromMap(Map<String, dynamic> map) {
  return UrlSchemeData(
    scheme: map['scheme'] ?? '',
    url: map['url'],
    host: map['host'],
    path: map['path'],
    queryParameters: map['queryItems'] != null
        ? (map['queryItems'] as List)
            .map((e) => Map<String, String>.from(e))
            .toList()
        : [],
  );
}