toJson method

  1. @override
dynamic toJson(
  1. Duration? object
)

Implementation

@override
dynamic toJson(Duration? object) {
  return object?.inSeconds;
}