toJson<T> method

T? toJson<T>(
  1. Object? o, {
  2. bool duplicatedEntitiesAsID = false,
  3. bool? autoResetEntityCache,
})

Converts o to a JSON collection/data.

  • maskField when preset indicates if a field value should be masked with maskText.

Implementation

T? toJson<T>(Object? o,
    {bool duplicatedEntitiesAsID = false, bool? autoResetEntityCache}) {
  return encoder.toJson<T>(o,
      duplicatedEntitiesAsID: duplicatedEntitiesAsID,
      autoResetEntityCache: autoResetEntityCache);
}