(&self, parser: &Parser)
| 13 | |
| 14 | impl<T: AsPythonCompat> AsNullablePythonCompat<T> for Option<T> { |
| 15 | fn as_python_compat(&self, parser: &Parser) -> Value { |
| 16 | if let Some(v) = self { |
| 17 | v.as_python_compat(parser) |
| 18 | } else { |
| 19 | json!(null) |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | macro_rules! json_python_compat_node { |
no outgoing calls
no test coverage detected