toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (from != null) {
    json[r'from'] = from;
  }
  if (to != null) {
    json[r'to'] = to;
  }
  if (reason != null) {
    json[r'reason'] = reason;
  }
  if (expectedEndOn != null) {
    json[r'expectedEndOn'] = expectedEndOn;
  }
  if (impact != null) {
    json[r'impact'] = impact;
  }
  if (additionalInformation != null) {
    json[r'additionalInformation'] = additionalInformation;
  }
  return json;
}