toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var name = this.name;
  var startDate = this.startDate;
  var endDate = this.endDate;
  var originBoardId = this.originBoardId;
  var goal = this.goal;

  final json = <String, Object?>{};
  if (name != null) {
    json[r'name'] = name;
  }
  if (startDate != null) {
    json[r'startDate'] = startDate;
  }
  if (endDate != null) {
    json[r'endDate'] = endDate;
  }
  if (originBoardId != null) {
    json[r'originBoardId'] = originBoardId;
  }
  if (goal != null) {
    json[r'goal'] = goal;
  }
  return json;
}