toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (status != null) {
    json[r'status'] = status;
  }
  if (flux != null) {
    json[r'flux'] = flux;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (every != null) {
    json[r'every'] = every;
  }
  if (cron != null) {
    json[r'cron'] = cron;
  }
  if (offset != null) {
    json[r'offset'] = offset;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  return json;
}