validate static method

void validate(
  1. Object? value
)

Throws FormatException if value is not JSON-safe.

Implementation

static void validate(Object? value) {
  _validate(value, path: r'$');
}