fromJson method
Implementation
@override
PathSource? fromJson(Object? json) {
if (json == null) return null;
if (json is Map) {
return PathSource.fromJson(json.cast<String, Object?>());
}
throw FormatException('Unsupported PathSource: $json');
}