Maps the CreatedBy to a format the server can understand
Map<String, String?> toJson() => { 'displayValue': displayValue ?? '', 'id': id, 'name': name, 'type': type.backendType, };