toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var boardId = this.boardId;
  var boardName = this.boardName;
  var simpleBoard = this.simpleBoard;
  var totalBoardsInProject = this.totalBoardsInProject;

  final json = <String, Object?>{};
  if (boardId != null) {
    json[r'boardId'] = boardId;
  }
  if (boardName != null) {
    json[r'boardName'] = boardName;
  }
  json[r'simpleBoard'] = simpleBoard;
  if (totalBoardsInProject != null) {
    json[r'totalBoardsInProject'] = totalBoardsInProject;
  }
  return json;
}