fromMap static method

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

Gets a possible FrameInfo instance from a Map value.

Implementation

static FrameInfo? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = FrameInfo(
    isMainFrame: map['isMainFrame'],
    request: URLRequest.fromMap(map['request']?.cast<String, dynamic>()),
    securityOrigin: SecurityOrigin.fromMap(
        map['securityOrigin']?.cast<String, dynamic>()),
  );
  return instance;
}