InspectError.fromJson constructor

InspectError.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory InspectError.fromJson(Map<String, Object?> json) => InspectError(
  exception: json['exception'] as String? ?? '',
  library: json['library'] as String?,
  context: json['context'] as String?,
  count: json['count'] as int? ?? 1,
  network: json['network'] == true,
  frames: [for (var frame in json['frames'] as List? ?? const []) '$frame'],
);