toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (userId != null) {
    _json[r'user_id'] = userId;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  if (updateAt != null) {
    _json[r'update_at'] = updateAt;
  }
  if (deleteAt != null) {
    _json[r'delete_at'] = deleteAt;
  }
  if (username != null) {
    _json[r'username'] = username;
  }
  if (displayName != null) {
    _json[r'display_name'] = displayName;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  if (ownerId != null) {
    _json[r'owner_id'] = ownerId;
  }
  return _json;
}