fromJson method
Implementation
dynamic fromJson(value, TypeContext context) {
Duration? duration = value is Duration ? value : null;
if (duration != null) return duration;
return fromTimeSpan(value as String?);
}
dynamic fromJson(value, TypeContext context) {
Duration? duration = value is Duration ? value : null;
if (duration != null) return duration;
return fromTimeSpan(value as String?);
}