fromMap static method

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

Gets a possible InAppBrowserMenuItem instance from a Map value.

Implementation

static InAppBrowserMenuItem? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = InAppBrowserMenuItem(
    icon: _deserializeIcon(map['icon']),
    iconColor: map['iconColor'] != null
        ? UtilColor.fromStringRepresentation(map['iconColor'])
        : null,
    id: map['id'],
    order: map['order'],
    title: map['title'],
  );
  instance.showAsAction = map['showAsAction'];
  return instance;
}