InfospectNetworkError.fromMap constructor

InfospectNetworkError.fromMap(
  1. Map map
)

Creates an instance of the InfospectNetworkError class from a Map representation.

Parameters:

  • map: A Map containing the key-value pairs representing the InfospectNetworkError object.

Returns an instance of the InfospectNetworkError class with the data populated from the provided Map.

Implementation

factory InfospectNetworkError.fromMap(Map map) {
  return InfospectNetworkError(
    error: map['error'] as dynamic,
    stackTrace: map['stackTrace'] != null
        ? StackTrace.fromString(map['stackTrace'])
        : null,
  );
}