LogEntrySourceLocation.fromJson constructor
LogEntrySourceLocation.fromJson(
- Object? j
Implementation
factory LogEntrySourceLocation.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return LogEntrySourceLocation(
file: switch (json['file']) {
null => '',
Object $1 => decodeString($1),
},
line: switch (json['line']) {
null => 0,
Object $1 => decodeInt64($1),
},
function: switch (json['function']) {
null => '',
Object $1 => decodeString($1),
},
);
}