ExtensionCall.fromJson constructor

ExtensionCall.fromJson(
  1. Map<String, Object?> json
)

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');
}