toJson method

Map toJson()

Implementation

Map toJson() {
  return {
    'duration': duration,
  }..removeWhere((_, v) => v == null);
}