toJson<T> method

  1. @override
dynamic toJson<T>(
  1. T value
)

Override original toJson for DateTime as-is handling.

Implementation

@override

/// Override original toJson for DateTime as-is handling.
dynamic toJson<T>(T value) {
  if (value is DateTime) return value.toIso8601String();
  return value;
}