fromMap static method

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

Gets a possible ChromeSafariBrowserSecondaryToolbar instance from a Map value.

Implementation

static ChromeSafariBrowserSecondaryToolbar? fromMap(
    Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = ChromeSafariBrowserSecondaryToolbar(
    layout: AndroidResource.fromMap(map['layout']?.cast<String, dynamic>())!,
  );
  instance.clickableIDs =
      List<ChromeSafariBrowserSecondaryToolbarClickableID>.from(
          map['clickableIDs'].map((e) =>
              ChromeSafariBrowserSecondaryToolbarClickableID.fromMap(
                  e?.cast<String, dynamic>())!));
  return instance;
}