toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var projectId = this.projectId;
  var userId = this.userId;
  var userAccountId = this.userAccountId;
  var displayName = this.displayName;
  var projectName = this.projectName;
  var projectKey = this.projectKey;
  var projectTypeKey = this.projectTypeKey;
  var avatarUri = this.avatarUri;
  var name = this.name;

  final json = <String, Object?>{};
  if (projectId != null) {
    json[r'projectId'] = projectId;
  }
  if (userId != null) {
    json[r'userId'] = userId;
  }
  if (userAccountId != null) {
    json[r'userAccountId'] = userAccountId;
  }
  if (displayName != null) {
    json[r'displayName'] = displayName;
  }
  if (projectName != null) {
    json[r'projectName'] = projectName;
  }
  if (projectKey != null) {
    json[r'projectKey'] = projectKey;
  }
  if (projectTypeKey != null) {
    json[r'projectTypeKey'] = projectTypeKey;
  }
  if (avatarUri != null) {
    json[r'avatarURI'] = avatarUri;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  return json;
}