toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'active'] = active;
  json[r'running'] = running;
  if (pendingFrom != null) {
    json[r'pendingFrom'] = pendingFrom;
  }
  if (pendingTo != null) {
    json[r'pendingTo'] = pendingTo;
  }
  return json;
}