fun <T : Any> toWriteModel(json: Array<out String>, codecRegistry: CodecRegistry, type: KClass<T>): List<WriteModel<BsonDocument>>