fromMap static method

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

Gets a possible InAppWebViewInitialData instance from a Map value.

Implementation

static InAppWebViewInitialData? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = InAppWebViewInitialData(
    androidHistoryUrl:
        map['historyUrl'] != null ? Uri.tryParse(map['historyUrl']) : null,
    baseUrl: map['baseUrl'] != null ? WebUri(map['baseUrl']) : null,
    data: map['data'],
    historyUrl: map['historyUrl'] != null ? WebUri(map['historyUrl']) : null,
  );
  instance.encoding = map['encoding'];
  instance.mimeType = map['mimeType'];
  return instance;
}