fromMap static method
- Map<
String, dynamic> ? map, { - EnumMethod? enumMethod,
Gets a possible InAppWebViewInitialData instance from a Map value.
Implementation
static InAppWebViewInitialData? fromMap(
Map<String, dynamic>? map, {
EnumMethod? enumMethod,
}) {
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,
);
if (map['encoding'] != null) {
instance.encoding = map['encoding'];
}
if (map['mimeType'] != null) {
instance.mimeType = map['mimeType'];
}
return instance;
}