stringifyValue method

String stringifyValue(
  1. InsightModel value, [
  2. MapperContainer? container
])
inherited

Implementation

String stringifyValue(T value, [MapperContainer? container]) {
  try {
    var context = MappingContext(
      container: container,
      args: () => value.runtimeType.args
          .map((t) => t == UnresolvedType ? dynamic : t)
          .toList(),
    );
    return stringify(value, context);
  } catch (e, stacktrace) {
    Error.throwWithStackTrace(
      MapperException.chain(MapperMethod.stringify,
          '(Instance of \'${value.runtimeType}\')', e),
      stacktrace,
    );
  }
}