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