toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "enabled": enabled == null ? null : enabled,
  "duration": duration == null ? null : duration,
};