validateForeignCallJSON(foreignCall): Either<RulesError[], ForeignCallJSON>
Defined in: src/modules/validation.ts:390 Parses a JSON string and returns Either a ForeignCallJSON object or an error.

Parameters

ParameterTypeDescription
foreignCallstringstring to be parsed.

Returns

Either<RulesError[], ForeignCallJSON> Either the parsed ForeignCallJSON object or an error.