fromJson static method

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

Implementation

static InspectLogs fromJson(Map<String, Object?> json) => InspectLogs(
  entryId: json['entryId'] as String?,
  dropped: (json['dropped'] as num?)?.toInt() ?? 0,
  lines: [
    for (var line in json['lines'] as List? ?? const [])
      if (line is Map) InspectLogLine.fromJson(line.cast<String, Object?>()),
  ],
);