fromMap static method

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

Gets a possible SafeBrowsingResponse instance from a Map value.

Implementation

static SafeBrowsingResponse? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = SafeBrowsingResponse();
  instance.action = SafeBrowsingResponseAction.fromNativeValue(map['action']);
  instance.report = map['report'];
  return instance;
}