fromMap static method

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

Gets a possible SecurityOrigin instance from a Map value.

Implementation

static SecurityOrigin? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = SecurityOrigin(
    host: map['host'],
    port: map['port'],
    protocol: map['protocol'],
  );
  return instance;
}