ExtensionOperation.fromJson constructor

ExtensionOperation.fromJson(
  1. Object? j
)

Implementation

factory ExtensionOperation.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ExtensionOperation(
    operationId: switch (json['operationId']) {
      null => '',
      Object $1 => decodeString($1),
    },
    functionDeclaration: switch (json['functionDeclaration']) {
      null => null,
      Object $1 => FunctionDeclaration.fromJson($1),
    },
  );
}