toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (status != null) {
    _json[r'status'] = status;
  }
  if (online != null) {
    _json[r'online'] = online;
  }
  if (startedAt != null) {
    _json[r'startedAt'] = startedAt;
  }
  if (now != null) {
    _json[r'now'] = now;
  }
  return _json;
}