toJson method
Implementation
Map<String, Object?> toJson() {
var id = this.id;
var self = this.self;
var state = this.state;
var name = this.name;
var startDate = this.startDate;
var endDate = this.endDate;
var completeDate = this.completeDate;
var createdDate = this.createdDate;
var originBoardId = this.originBoardId;
var goal = this.goal;
final json = <String, Object?>{};
if (id != null) {
json[r'id'] = id;
}
if (self != null) {
json[r'self'] = self;
}
if (state != null) {
json[r'state'] = state;
}
if (name != null) {
json[r'name'] = name;
}
if (startDate != null) {
json[r'startDate'] = startDate;
}
if (endDate != null) {
json[r'endDate'] = endDate;
}
if (completeDate != null) {
json[r'completeDate'] = completeDate;
}
if (createdDate != null) {
json[r'createdDate'] = createdDate;
}
if (originBoardId != null) {
json[r'originBoardId'] = originBoardId;
}
if (goal != null) {
json[r'goal'] = goal;
}
return json;
}