toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (status != null) {
    json[r'status'] = status;
  }
  if (started != null) {
    json[r'started'] = started!.toUtc().toIso8601String();
  }
  if (up != null) {
    json[r'up'] = up;
  }
  return json;
}