InfospectNetworkError.fromMap constructor
InfospectNetworkError.fromMap(
- Map map
Creates an instance of the InfospectNetworkError
class from a Map representation.
Parameters:
map
: A Map containing the key-value pairs representing theInfospectNetworkError
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,
);
}