ExtensionCall.fromJson constructor
Implementation
factory ExtensionCall.fromJson(Map<String, Object?> json) {
if (json
case {
'__extn': {
'fn': final String fn,
'arg': final Object? arg,
}
}) {
return ExtensionCall(
fn: fn,
arg: Value.fromJson(arg),
);
}
throw FormatException('Invalid Cedar extension call: $json');
}