fromJson<O> method

O? fromJson<O>(
  1. Object? o, {
  2. Type? type,
  3. TypeInfo? typeInfo,
  4. bool duplicatedEntitiesAsID = false,
  5. bool? autoResetEntityCache,
})

Converts o to type.

Implementation

O? fromJson<O>(
  Object? o, {
  Type? type,
  TypeInfo? typeInfo,
  bool duplicatedEntitiesAsID = false,
  bool? autoResetEntityCache,
}) {
  return decoder.fromJson<O>(
    o,
    type: type,
    typeInfo: typeInfo,
    duplicatedEntitiesAsID: duplicatedEntitiesAsID,
    autoResetEntityCache: autoResetEntityCache,
  );
}