toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var status = this.status;
  var when = this.when;

  final json = <String, Object?>{};
  if (status != null) {
    json[r'status'] = status;
  }
  if (when != null) {
    json[r'when'] = when.toIso8601String();
  }
  return json;
}