DevToolsResponse.fromJson constructor

DevToolsResponse.fromJson(
  1. List jsonList
)

Implementation

factory DevToolsResponse.fromJson(List<dynamic> jsonList) {
  final json = listToMap(jsonList, type: type);
  return DevToolsResponse(
    success: json['success'] as bool,
    promptExtension: json['promptExtension'] as bool,
    error: json['error'] as String?,
  );
}