toJson method
Implementation
toJson(dynamic value, TypeContext context) {
Duration? duration = value is Duration ? value : null;
if (duration == null) return null;
return toTimeSpan(duration);
}
toJson(dynamic value, TypeContext context) {
Duration? duration = value is Duration ? value : null;
if (duration == null) return null;
return toTimeSpan(duration);
}