toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (beginMoment != null) {
    json[r'beginMoment'] = beginMoment;
  }
  if (endMoment != null) {
    json[r'endMoment'] = endMoment;
  }
  if (suspensionReason != null) {
    json[r'suspensionReason'] = suspensionReason;
  }
  return json;
}