TailLogEntriesResponse.fromJson constructor
TailLogEntriesResponse.fromJson(
- Object? j
Implementation
factory TailLogEntriesResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return TailLogEntriesResponse(
entries: switch (json['entries']) {
null => [],
List<Object?> $1 => [for (final i in $1) LogEntry.fromJson(i)],
_ => throw const FormatException('"entries" is not a list'),
},
suppressionInfo: switch (json['suppressionInfo']) {
null => [],
List<Object?> $1 => [
for (final i in $1)
TailLogEntriesResponse_SuppressionInfo.fromJson(i),
],
_ => throw const FormatException('"suppressionInfo" is not a list'),
},
);
}